Sha256: b497cb8ffd433113afaebba76869d750fa4e1c983e5c20e3b4197272c5ffc5f1
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
<?xml version="1.0"?> <html> <?r # the code that populates the template comes here unless name = context['name'] name = 'World' end session[:counter] ||= 0 session[:counter] += 1 ?> <!-- the template comes here --> <p> <img src="nitro.png" /> </p> <strong>Hello #{name}</strong> <!-- <p>#{context.headers.collect { |h| "#{h}<br/>" }}</p> --> <p> <form id="my_form"> <strong>Enter your name:</strong> <input type="text" name="name" /> <br /> <input type="submit" /> </form> </p> <p> Counter: #{session[:counter]} </p> <br /> <render href="include" /> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.9.3 | examples/tiny/root/index.xhtml |
nitro-0.9.5 | examples/tiny/root/index.xhtml |