Sha256: bd33fe56ff988d7aa6e854d4439e52a88d1c8b2d4c806dc35287a12e228b43c2

Contents?: true

Size: 321 Bytes

Versions: 62

Compression:

Stored size: 321 Bytes

Contents

module ExpressTemplates
  module Renderer
    # 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
end

Version data entries

62 entries across 62 versions & 2 rubygems

Version Path
express_templates-0.11.20 lib/express_templates/renderer.rb
express_templates-0.11.20.rc1 lib/express_templates/renderer.rb
express_templates-0.11.19 lib/express_templates/renderer.rb
express_templates-0.11.18 lib/express_templates/renderer.rb
express_templates-0.11.17 lib/express_templates/renderer.rb
express_templates-0.11.16 lib/express_templates/renderer.rb
express_templates-0.11.16.rc1 lib/express_templates/renderer.rb
express_templates-0.11.15 lib/express_templates/renderer.rb
express_templates-0.11.14 lib/express_templates/renderer.rb
express_templates-0.11.13 lib/express_templates/renderer.rb
express_templates-0.11.11 lib/express_templates/renderer.rb
express_templates-0.11.10 lib/express_templates/renderer.rb
express_templates-0.11.9 lib/express_templates/renderer.rb
express_templates-0.11.8 lib/express_templates/renderer.rb
express_templates-0.11.7 lib/express_templates/renderer.rb
express_templates-0.11.6 lib/express_templates/renderer.rb
express_templates-0.11.5 lib/express_templates/renderer.rb
express_templates-0.11.4 lib/express_templates/renderer.rb
express_admin-1.7.5 vendor/gems/express_templates/lib/express_templates/renderer.rb
express_admin-1.7.4 vendor/gems/express_templates/express_templates/lib/express_templates/renderer.rb