<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19400">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><B>From:</B> <A title=leecarmichael123@gmail.com
href="mailto:leecarmichael123@gmail.com">Lee Carmichael</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>
<DIV dir=ltr>
<DIV>On Sun, Mar 10, 2013 at 11:44 AM, David Golden <SPAN dir=ltr><<A
href="mailto:xdg@xdg.me" target=_blank>xdg@xdg.me</A>></SPAN>
wrote:<BR></DIV>
<DIV class=gmail_extra>
<DIV class=gmail_quote>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV class=im>On Sun, Mar 10, 2013 at 12:01 PM, Rik Brown <<A
href="mailto:rik@rikbrown.co.uk">rik@rikbrown.co.uk</A>>
wrote:<BR>>> I think it could be useful if the config would be also
accessible. Or is<BR>>> there a reason this would not be a good
idea?<BR><BR></DIV>I wouldn't want things like database password to be
automatically<BR>available. Then a template bug could cause a huge
security hole.<BR><BR>I think if you want to make config data available in
templates, it's<BR>be to do that yourself, explicitly and limit it only to
keys you need.</BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Be it good or bad, you can access config with 'settings' keyword in
templates. I'm not sure what but some of the variables are removed/hidden in
error pages. I'm not sure about them in other areas. </DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><BR></DIV>
<DIV>see 'Template Tokens' in <A
href="https://metacpan.org/module/Dancer::Template::Abstract">https://metacpan.org/module/Dancer::Template::Abstract</A></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I checked but it doesn't seem to be that module
for Dancer2.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Octavian</FONT></DIV>
<DIV> </DIV></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>