From 06161bf714afafdd704984d03388f1f65ea597bd Mon Sep 17 00:00:00 2001 From: Markus Prinz Date: Wed, 25 Mar 2009 09:45:48 -0700 Subject: [PATCH] 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. --- README.rdoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rdoc b/README.rdoc index e5090740..0b3697d8 100644 --- a/README.rdoc +++ b/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 :'subdir/template'). Rendering methods will render +any strings passed to them directly. + === Haml Templates The haml gem/library is required to render HAML templates: