Closed jots closed 13 years ago
will this ever be possible:
name="fred" eco.render "<%= name %>"
currently I have a lot of: @name = name for the sole purpose of getting them to render in the template.
No, you always need to pass a context object to eco.render. CoffeeScript's object literal syntax can help:
eco.render
name = "Fred" eco.render "<%= @name %>", {name}
will this ever be possible:
name="fred" eco.render "<%= name %>"
currently I have a lot of: @name = name for the sole purpose of getting them to render in the template.