Sha256: 5fe91913e8f07a93baf230fcc6052159495cb29a91fde3afd1731653625b8782
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
<?xml version="1.0"?> <html> <?r # the code that populates the template comes here unless name = params['name'] name = 'World' end session[:counter] ||= 0 session[:counter] += 1 ?> <!-- the template comes here --> <p> <img src="nitro-small.png" /> </p> <strong>Hello #{name}</strong> <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 /> <?include href="include.xhtml"?> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.7.0 | examples/tiny/root/index.xhtml |
nitro-0.8.0 | examples/tiny/root/index.xhtml |