<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello<br>
you can directly print session fieds in your TT template <br>
<br>
[% session.username %]<br>
<br>
just before push this info in your user session<br>
<br>
session username => params->{username}<br>
<br>
bye<br>
Hugues<br>
<br>
<br>
<div class="moz-cite-prefix">Le 28/01/2015 09:49, Nikos Vaggalis a
écrit :<br>
</div>
<blockquote
cite="mid:CA+PXb4a5k1xmS2KaDacahcr1W4f3Keabb7mDHGxaTKxBU8ORAA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,<br>
<br>
Can you access session variables inside the TT template?<br>
Like if I set<br>
session 'display' =>10;<br>
in my controller, then how can I access the vaule from within
the template? <br>
<br>
<div>And, how do I dereference a scalar reference passed to the
template as : <br>
</div>
<br>
my $myvalue=10<br>
<br>
return template '/data' => { <br>
total=>\$myvalue<br>
}; <br>
<br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dancer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a>
<a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
</blockquote>
<br>
</body>
</html>