This is probably a good start: http://mojolicio.us/perldoc/Mojolicious/Renderer#paths
Jonathan Otsuka On Jul 16, 2014, at 10:00 PM, Raunak Kathuria <[email protected]> wrote: > How can we load layout/templates from separate directory rather than the > default template directory (on same hierarchy level of lib, public). I will > explain the scenario > As of now we use to load it from default template directory but now we are > going to open source our templates for white-labeling so the directory > structure will change and templates will be moved to altogether different > separate directory > > For e.g say if earlier it was /home/git/parent/template along with > /home/git/parent/lib at same level but now the templates will be moved to > something like this /home/git/new_repo/template but the lib will remain in > same directory > > So how can we handle this scenario? Can we serve templates from different > directory? > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
