Sha256: 8c95e9db9aa62c733ded9ea087fbc038c43dfca35d565d03163018cf904de04a
Contents?: true
Size: 391 Bytes
Versions: 23
Compression:
Stored size: 391 Bytes
Contents
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 def render context=nil, template_or_src=nil, &block compiled_template = compile(template_or_src, &block) context.instance_eval compiled_template end end end
Version data entries
23 entries across 23 versions & 2 rubygems