[Dancer-users] Version numbers hard coded in templates

sawyer x xsawyerx at gmail.com
Sat Feb 26 18:15:16 CET 2011


On Fri, Feb 25, 2011 at 5:50 PM, Brian E. Lozier <brian at massassi.com> wrote:

> I realize these pages are meant to
> be replaced with my code but it would be cool if it would report the
> version correctly.
>

If you're referring to the "Powered by Dancer ..." at the bottom of the
pages, you're absolutely right, and it's now done this way.
We use a variable that is added by the abstract layer of templates, called
"dancer_version".

Here's from the main.tt I just scaffolded:
Powered by <a href="http://perldancer.org/">Dancer</a> <% dancer_version %>

All the best,
Sawyer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110226/a4fb6f7c/attachment.htm>


More information about the Dancer-users mailing list