Sha256: ec57977c762c6d1e168f63efd1c4eb277e68842e2812165375abdb13a228046a

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 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>


</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.6.0 examples/tiny/root/index.xhtml