<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19400">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><B>Aha, ok, thank you. It was a nice syntax though.</B></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><B>From:</B> <A title=xdg@xdg.me href="mailto:xdg@xdg.me">David Golden</A> 
</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><BR></DIV>
  <P>In Dancer2, you can't access the session object data directly like that 
  anymore.</P>
  <P>You can use the API described in Dancer2::Core::Session, though.</P>
  <P>David</P>
  <DIV class=gmail_quote>On Mar 17, 2013 11:08 AM, "Octavian Rasnita" &lt;<A 
  href="mailto:orasnita@gmail.com">orasnita@gmail.com</A>&gt; wrote:<BR 
  type="attribution">
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Hi,<BR><BR>I read that we can use 
    both:<BR><BR>session('key')<BR>and<BR>session-&gt;{key}<BR><BR>...in order 
    to get a value from the session.<BR><BR>I tried:<BR><BR>template 'login', { 
    message =&gt; session-&gt;{flash} };<BR><BR>but it didn't work. However, the 
    following worked:<BR><BR>template 'login', { message =&gt; session('flash') 
    };<BR><BR>--Octavian<BR><BR>______________________________<U></U>_________________<BR>dancer-users 
    mailing list<BR><A href="mailto:dancer-users@dancer.pm" 
    target=_blank>dancer-users@dancer.pm</A><BR><A 
    href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" 
    target=_blank>http://lists.preshweb.co.uk/<U></U>mailman/listinfo/dancer-users</A><BR></BLOCKQUOTE></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>dancer-users mailing 
  list<BR>dancer-users@dancer.pm<BR>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users<BR></BLOCKQUOTE></BODY></HTML>