Search code examples
rubycgitemplate-engine

Looking for an easy templating solution with ruby


I am looking for a simple templating solution for ruby, i.e. something that will let me write php-like or jsp-like templates (html with embedded code tags), but in ruby. jsp is no good for me, because most hosting services (I'm on dreamhost) don't support it on their default package, and it's a little cumbersome to set up. php is easy to get up and running, but I hate the syntax, and I miss all the greatness of ruby.

erb seems to be close to what I'm looking for, but how do I set up the server (htaccess file etc) to serve it?

P.S. Please do not suggest Ruby On Rails. It's a huge overkill for what I'm doing.


Solution

  • You can find pretty neat tutorial about how to set up all the server stuff for serving html with eruby over here.