Dancer-Plugin-WindowSession
    
    
  
  
  
view release on metacpan or search on metacpan
eg/example/views/settings.tt view on Meta::CPAN
<div class="container">
<h1>Dancer::Plugin::WindowSession Example</h1>
<br/>
<h2>Change Settings</h2>
<form class="form-horizontal" method="post">
<fieldset>
	<legend>Global Settings <small>(session variables)</small></legend>
	<input type="hidden" name="winsid" value="[%=winsid%]"/>
	<!-- Text-Entry Control -->
	<div class="control-group">
		<label class="control-label" for="username">Your name</label>
		<div class="controls">
			<input type="text" id="username" name="username" value="[% session.username | html%]">
			<span class="help-inline"></span>
		</div>
	</div>
	<legend>Per-Window Settings <small>(window-session variables)</small></legend>
	<!-- List box control -->
	<div class="control-group">
		<label class="control-label" for="plottype">Plot Type</label>
		<div class="controls">
			<select id="plot_type" name="plot_type">
[% FOREACH plot IN [ "area", "points", "lines", "bars" ] %]
				<option [% IF window_session.plot_type == plot %]selected[% END %]>[% plot %]</option>
[% END %]
			</select>
( run in 1.020 second using v1.01-cache-2.11-cpan-5dc5da66d9d )