lib/express_templates/template/handler.rb in express_templates-0.2.0 vs lib/express_templates/template/handler.rb in express_templates-0.2.2
- old
+ new
@@ -5,10 +5,10 @@
new.call(template)
end
def call(template)
# returns a string to be eval'd
- ExpressTemplates::Expander.expand(template, template.source)
+ "(#{ExpressTemplates.compile(template)}).html_safe"
end
end
end
end
\ No newline at end of file