[Dancer-users] Dancer-Boilerplate
Assaf Gordon
gordon at cshl.edu
Tue Jul 3 02:11:33 CEST 2012
On 07/02/2012 07:18 PM, Naveed Massjouni wrote:
> It would be awesome if someone ported this to Dancer:
>
> http://boilerplate-tudorconstantin.dotcloud.com
> https://github.com/tudorconstantin/Mojolicious-Boilerplate
>
I think this is pretty similar:
http://cowbell.cancan.cshl.edu/
But if there are any useful/cool features that they have and we don't, I can add them.
<shameless plug>
Note that their template has "bootstrap" hard-coded in the git repository - so to update bootstrap *after* you instantiated their template, you'd have to do it manually (assuming you can't pull from their repository any more, because you've started your own git repository with the real project).
While my template allows you to update to the latest bootstrap version with one easy script, without harming anything (and also saves the previous version, just in case).
Also,
Their template has the mis-feature of using just one CSS in the main layout (bootstrap.css), so for a real project with custom CSS settings, you'll have to either:
1. Create a new custom CSS (easy, but more manual work - so their template could be improved)
2. update "bootstrap.css" directly (not recommended, because then you can't easily upgrade bootstrap)
3. Change the CSS inlined in the layout files - bad form.
My template already contains "./public/style.css" (empty by default) that is included after bootstrap.css and overrides it - so if you add your own CSS statement and then upgrade bootstrap - it just works out of the box.
Also(2),
My template has "font-awesome" integrated (overriding Bootstrap's glyphicons) and easily upgradable, which is way cooler :)
</shameless plug>
-gordon
More information about the Dancer-users
mailing list