lib/express_templates/renderer.rb in express_templates-0.7.1 vs lib/express_templates/renderer.rb in express_templates-0.8.0
- old
+ new
@@ -1,9 +1,7 @@
module ExpressTemplates
module Renderer
- # render accepts source or block, expands to macros
- # compiles the resulting macros
- # and then evaluates the resulting string of ruby in the context provided
+ # render accepts source or block, evaluates the resulting string of ruby in the context provided
def render context=nil, template_or_src=nil, &block
compiled_template = compile(template_or_src, &block)
context.instance_eval compiled_template
end
end
\ No newline at end of file