Sha256: 398872a4155f8cc2375cdb074ea3ced6a22b2ab92d946c7e1caf9fb4a8e3f873
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
module Dyny # This plugs into Rails and allows to handle app/views/foo/bar.html.rb templates class TemplateHandler def call(_template, source_code = nil) return <<~RUBY #{source_code} return output_buffer RUBY end end end ActionView::Template.register_template_handler(:dyny, Dyny::TemplateHandler.new)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dyny-0.1.0 | lib/dyny/template_handler.rb |
dyny-0.0.3 | lib/dyny/template_handler.rb |