Sha256: f3513b299b625ab0430917fa9264e5a950cf243c312f26c76a4eb0cf9994170b

Contents?: true

Size: 902 Bytes

Versions: 1

Compression:

Stored size: 902 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>#{Rendering.reload} 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

1 entries across 1 versions & 1 rubygems

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