Sha256: 5dc064301ffefdc5102ac684d5bda5d9db3b269c49373b994b12dd84a7bf80c0
Contents?: true
Size: 310 Bytes
Versions: 3
Compression:
Stored size: 310 Bytes
Contents
module Arbre module Rails class TemplateHandler def call(template) <<-END Arbre::Context.new(assigns, self) { #{template.source} }.to_s END end end end end ActionView::Template.register_template_handler :arb, Arbre::Rails::TemplateHandler.new
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arbre-1.1.1 | lib/arbre/rails/template_handler.rb |
arbre-1.0.3 | lib/arbre/rails/template_handler.rb |
arbre-1.0.2 | lib/arbre/rails/template_handler.rb |