Sha256: cb857bb3ae96366605a5583b91d4476277097cb13f2a668f3be39f70de693647

Contents?: true

Size: 854 Bytes

Versions: 3

Compression:

Stored size: 854 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>
<render href="include" />
<p>
</p>
<render href="deep/dir/hello" />
<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.15.0 examples/tiny/public/index.xhtml
nitro-0.16.0 examples/tiny/public/index.xhtml
nitro-0.17.0 examples/tiny/public/index.xhtml