Sha256: 4cfb976d2be0ff6e772ee938a76306c8a1d05f3975d3fe85ccd9a34c3a390dd1
Contents?: true
Size: 882 Bytes
Versions: 3
Compression:
Stored size: 882 Bytes
Contents
<?xml version="1.0"?> <html> <?r # the code that populates the template comes here unless name = request['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> <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" /> <!-- <p>#{context.headers.collect { |h| "#{h}<br/>" }}</p> <p> <h3>Upload a picture</h3> <form action="upload" method="post" enctype="multipart/form-data"> <p> <b>Title:<b><br /> <input type="text" name="title" /> </p> <p> <b>File:<b><br /> <input type="file" name="file" /> </p> <input type="submit" value="Upload" /> </form> </p> --> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.11.0 | examples/tiny/root/index.xhtml |
nitro-0.12.0 | examples/tiny/root/index.xhtml |
nitro-0.13.0 | examples/tiny/public/index.xhtml |