Camping, a Microframework

Latest news: Another Post

Camping is a web framework which consistently stays at less than 4kB of code. You can probably view the complete source code on a single page. But, you know, it’s so small that, if you think about it, what can it really do?

The idea here is to store a complete fledgling web application in a single file like many small CGIs. But to organize it as a Model-View-Controller application like Rails does. You can then easily move it to Rails once you’ve got it going.

Short Example

Camping.goes :Blog

module Blog::Models
  class Post < Base; end

module Blog::Controllers
  class Index
    def get
      @posts = Post.all
      render :index

module Blog::Views
  def index
    @posts.each do |post|
      h1 post.title
      div.content! { post.body }

Getting Started

Interested yet? Great, the links below should get you started pretty quickly. If you’re having some problems or there’s something you’re wondering about, don’t hesitate to join the community.

Installation: By using RubyGems it’s just a matter of a few keystrokes to install Camping. There’s also experimental builds if you want the latest features.

The Camping Book: Something about the book.

Rules of Thumb: Something about the rules of thumb.

Philosophy: Something about what makes Camping different.

The Camping Wiki Something about the wiki.

Upgrading: Something about upgrading from Camping 1.5.


Camping has a small, but helpful community and most issues are resolved quickly. Don’t be afraid to ask; there’s no point of trying to figure everything out by yourself when we might be able to answer it in a second. We also love to hear all about how you are using Camping, and maybe you can teach us few tricks you’ve discovered too.

If you have any feature requests or suggestions on how we can improve Camping, don’t feel bad for throwing out suggestions without being able to contribute code. The ideas are just as important as the implementation, and Camping won’t get any further without your feedback. Tell the community what you want, and hopefully someone is able to help you.

Mailing List: The mailing list is the most central part of the Camping community and you should definitly join it right away. This is both where the main development of Camping happens, and where questions are answered quickly. (There’s also a searchable archive if you’re looking for a specific message.)

#camping @ There’s also a few of us who are available at IRC so if you feel like chatting with us, this where you should be. Please hang around if no one answers you right away, and it’s also very helpful if you leave your email so we can get back to you when we’re available again.

Issues: We also have a bug tracker where you can see all of the known (and resolved) bugs and feature requests at the moment. If you have a very specific problem, it might be a good idea to see if it’s been reported before. If not, you might open a new issue or maybe ask the the mailing list.

Source code: The source code of Camping is available freely under the MIT licence, which pretty much give you permission to do anything you want with it.

What now?