Sha256: df40ce03a9e9a6678620770ca495be32056c13585add1310ef201ba94ee65a04
Contents?: true
Size: 368 Bytes
Versions: 3
Compression:
Stored size: 368 Bytes
Contents
module QbIif module Rails class TemplateHandler cattr_accessor :default_format self.default_format = Mime::IIF def self.call(template) <<-RUBY iif = ::QbIif::IIF.new #{template.source} iif.output RUBY end ActionView::Template.register_template_handler :riif, self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qb_iif-0.1.2 | lib/qb_iif/rails/template_handler.rb |
qb_iif-0.1.1 | lib/qb_iif/rails/template_handler.rb |
qb_iif-0.1.0 | lib/qb_iif/rails/template_handler.rb |