Wednesday, October 26, 2005

Textile Templates with Rails in 10 lines or less

The template code goes in myapp/lib/textile_template.rb:



You register the file suffix with the template handler in either the myapp/app/controllers/application.rb or myapp/config/environment.rb:



Put your textile formatted file in your view:



And you're done!

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home