Browse files

Note on passing template symbols vs. strings in README

The README is very ambiguous about the difference between passing a
symbol and a string to a template rendering method. This adds a note
that explains the difference.
  • Loading branch information...
1 parent 13fc79d commit 06161bf714afafdd704984d03388f1f65ea597bd @cypher cypher committed with rtomayko Mar 25, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.rdoc
@@ -109,6 +109,11 @@ directory. To use a different views directory:
set :views, File.dirname(__FILE__) + '/templates'
+One important thing to remember is that you always have to reference
+templates with symbols, even if they're in a subdirectory (in this
+case use <tt>:'subdir/template'</tt>). Rendering methods will render
+any strings passed to them directly.
=== Haml Templates
The haml gem/library is required to render HAML templates:

0 comments on commit 06161bf

Please sign in to comment.