Sha256: 50e8ff8c3d1b016ec13445eeb2328638b1ed45b25dc5cd162d225eb7d4e5d5ea

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

require 'erubis'
require 'tenjin'

include Erubis::XmlHelper

context = { :items => ['<AAA>', 'B&B', '"CCC"'] }
engine = Tenjin::Engine.new(:layout=>'ex6-layout.rhtml',
                           :templateclass=>Tenjin::ErubisTemplate)
output = engine.render('ex6-content.rhtml', context)
print output

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tenjin-0.6.2 test/data/faq/ex6.rb
tenjin-0.6.0 test/data/faq/ex6.rb
tenjin-0.6.1 test/data/faq/ex6.rb