Alex Muller
unread,Oct 15, 2010, 2:49:11 PM10/15/10Sign 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 Webby
Hi all,
New to Webby and Ruby, and I'd appreciate any help you can give me
with ERB; this seems to be a great little tool for a project I'm
working on.
I'm editing my default.txt layout file and can't understand why this
is happening:
<%= @page.title %> returns "My Page Title"
<%= @content %> returns "My page content goes right in here"
<%= ((defined? @page.title) ? 'SET' : 'NOT SET') %> returns "NOT SET"
<%= ((defined? @content) ? 'SET' : 'NOT SET') %> returns "SET"
I'm trying to include a variable from the content metadata, but only
if it's set.
Hope that makes sense,
Alex