# Camping 2.1 - ERB, Haml, 1.9, bug fixes, new website!

**URL:** <https://www.ruby-forum.com/t/camping-2-1-erb-haml-1-9-bug-fixes-new-website/193581>\
**Category:** Ruby\
**Created:** [August 20, 2010, 1:26am UTC](https://www.ruby-forum.com/t/camping-2-1-erb-haml-1-9-bug-fixes-new-website/193581 "2010-08-20T01:26:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![judofyr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Post date:** [August 20, 2010, 1:26am UTC](https://www.ruby-forum.com/t/camping-2-1-erb-haml-1-9-bug-fixes-new-website/193581/1 "2010-08-20T01:26:40Z")

</div>

{}  
||  
||

```auto
~ Camping 2.1 ~

```

I’m pleased to announce another release of Camping, the microframework.  
This  
time we’ve focused on improving the 1.9 support, adding (builtin)  
support for  
more template engines, refreshing the homepage and just general bug  
fixes.

gem install camping

Home: [http://camping.rubyforge.org/](http://camping.rubyforge.org/)  
Code: [GitHub - camping/camping: the 5k pocket full-of-gags web microframework](http://github.com/camping/camping)  
Bugs: [Issues · camping/camping · GitHub](http://github.com/camping/camping/issues)  
List: [http://rubyforge.org/mailman/listinfo/camping-list](http://rubyforge.org/mailman/listinfo/camping-list)

Let’s have a look:

~\> ERB and Haml

Camping now includes support for Tilt ([GitHub - rtomayko/tilt: Generic interface to multiple Ruby template engines](http://github.com/rtomayko/tilt))  
which  
means that you’ll get simple, effortless ERB and Haml support:

module App  
# Path to where you want to store the templates  
set :views, File.dirname( **FILE** ) + ‘/views’  
end

module App::Controllers  
class Index  
def get  
render :index  
end  
end  
end

Now you just need to add a views/index.haml or views/index.erb and it’ll  
render that instead of using Markaby. You can still use Markaby of  
course!

If you want to change any options for either ERB or Haml, you can use  
#set:

module App  
set :haml, { :escape\_html =\> true }  
set :erb, { :trim =\> “%” }  
end

~\> New homepage

Bluebie has designed an excellent new homepage for Camping:

[http://camping.rubyforge.org/](http://camping.rubyforge.org/)

It should have links to pretty much everything you need to know about  
Camping. As soon as possible we’ll also try to integrate it with the  
GitHub  
wiki and make everything more easily editable, so you can add your own  
links  
too!

We’ve also started a blog at [http://campingrb.tumblr.com/](http://campingrb.tumblr.com/), where we’ll  
keep  
you up-to-date on the Camping development and community.

~\> \_whyday!

It’s the 19th August today, so that means it’s Whyday:  
[http://whyday.org/](http://whyday.org/)

Camping 2.1 is our little contribution 🙂

I should mention that many of these changes has been available for a  
_looong_  
time in the source, but we felt that Whyday was a perfect occasion for  
finally releasing 2.1.

I’d actually recommend to try out the experimental version if there’s  
been a  
while since the latest release. See the installation page in the wiki  
for  
information, and subscribe to [http://campingrb.tumblr.com/](http://campingrb.tumblr.com/) to get a  
sneak  
preview of the latest changes in Camping!

Have fun and enjoy both Whyday and Camping!
