Sha256: e068316f811587cc5eeaf8162bff953ddbcf8ea7fca9e3b523b39c8fb0d4f6d7
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
module Riif module Rails class TemplateHandler cattr_accessor :default_format self.default_format = Mime[:iif] def self.call(template) <<-RUBY iif = ::Riif::IIF.new #{template.source} iif.output RUBY end ActionView::Template.register_template_handler :riif, self end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
riif-0.7.0 | lib/riif/rails/template_handler.rb |
iif-0.6.1 | lib/riif/rails/template_handler.rb |