[dancer-users] How to load different files, in development and production?

Pierre M piemas25 at gmail.com
Wed Oct 30 16:25:13 GMT 2013


Hi everyone,
I'm deploying my first Dancer2 app, and I want to use different CSS+JS
files in development and production. What are good ways to do this?
(simple, maintainable)

The solution I've imagined so far is to have two separate list of files,
and manually include one or the other into my layout with
Template::Toolkit's <% INCLUDE filename %>. There must be a better  way.

Unfortunately, I haven't found how to access environment variables inside
the layout file.
Pierre


---
I check email a couple times daily; to reach me sooner, you can send me a
text message via this page: https://awayfind.com/mascip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20131030/d8d19afd/attachment.html>


More information about the dancer-users mailing list