Phrogz
unread,Sep 5, 2008, 3:17:08 PM9/5/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ramaze
Hi there; I'm new to Ramaze, but not Ruby or web development. Please
feel free to be harsh if this is a silly mistake. :)
I have started with the standard site template created by Ramaze, and
changed controller/main.rb to have "engine :Erubis" in the
MainController. When I place "<%=66%>" into page.xhtml, I get an
uppercase "B" character output instead of the string "66". (66.chr ==
"B")
(Similarly, if I have <%=nil%> I get an error, while <%=nil.to_s%>
yields an empty string.)
I'm familiar with Erb, but not Erubis. Is this a feature/performance
optimization of Erubis?
Do I need to change the extension of page.xhtml to something else?
How can I get standard Erb templating to work?