Sha256: 9395787be354c6c53af956f1a62e9e88d0d8a3721b74e9c6dd643b6b18f50e61
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
require "tenjin" require "tempfile" class Tenjin::Context include Ramaze::Helper::Methods helper :link, :sendfile, :flash, :cgi end module Ramaze module Template # Is responsible for compiling a template using the Tenjin templating engine. # Can be found at: http://www.kuwata-lab.com/tenjin/ class Tenjin < Template ENGINES[self] = %w[ rbhtml tenjin ] class << self def transform(action) tenjin = wrap_compile(action) context = action.instance.instance_variable_get("@context") || {} tenjin.render(context) end def compile(action, template) tenjin = ::Tenjin::Template.new tenjin.convert(template) return tenjin end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.9 | lib/ramaze/template/tenjin.rb |
ramaze-0.3.9.1 | lib/ramaze/template/tenjin.rb |