[dancer-users] Accessing config in the templates

Rik Brown rik at rikbrown.co.uk
Sun Mar 10 16:01:13 GMT 2013


Hi,

I'm not sure if this is omitted for a reason or not, but I think you can
reasonably simulate this by adding a hook (before_template_render or
something like that - not got doc to hand) and just inserting the
configuration data into the output data at that point.

Cheers,
Rik

Sent from my phone.
On 10 Mar 2013 15:46, "Octavian Rasnita" <orasnita at gmail.com> wrote:

> Hi,
>
> I was sure the config hash is accessible in the templates, but I found
> that it is not.
>
> Then I read:
>
> "note that for convenience, the request, session, params and vars are
> automatically accessible in the
>    view, named "request", "session", "params" and "vars"
>
> I think it could be useful if the config would be also accessible. Or is
> there a reason this would not be a good idea?
>
> --Octavian
>
> ______________________________**_________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/**mailman/listinfo/dancer-users<http://lists.preshweb.co.uk/mailman/listinfo/dancer-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130310/fd1bae0a/attachment.htm>


More information about the dancer-users mailing list