Sha256: 67d934a50d5bc2ebcef6d15c57a56e923a02b69c33ea65d5269be81925521c57
Contents?: true
Size: 309 Bytes
Versions: 9
Compression:
Stored size: 309 Bytes
Contents
## create Engine object require 'tenjin' engine = Tenjin::Engine.new(:postfix=>'.rbhtml', :layout=>'layout.rbhtml') ## render template with context data params = { :name=>'Foo', :gender=>'M' } context = { :params=>params } output = engine.render(:update, context) # :update == 'update'+postfix puts output
Version data entries
9 entries across 5 versions & 1 rubygems