[Dancer-users] multi-folder Dancer app

P Kishor punk.kish at gmail.com
Fri Aug 20 13:32:54 CEST 2010


This could be something very simple, or it could be impossible, but I
surely can't figure out. How do I create a multi-folder Dancer app? As
is, I get the following when I boostrap a new app with `dancer` --

app/
    environments/
    view/
    lib/
    public/
    t/

The above works well for a relatively simple application, but if I
have several groups of relatively complicated functions, I would like
to group them by, well, by functions. Here is what I would like --

app/
    function1/
    function2/

function1 and function2 would be like mini dancer apps in their own
right, but would share common resources such as top menu, login
capabilities, logos, images (common to the both of them), master style
sheet, etc. They would likely also share a fair bit of common Perl
code, and also some data tables from a db.

What is a suggested pattern for that?

-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================


More information about the Dancer-users mailing list