Altering TT's INCLUDE_PATH in Dancer with Custom View
Altering Template Toolkit's INCLUDE_PATH in Dancer
This just came up on Dancer's mailing list and I've been sitting on this code (and post) for a few months since the project I was working on didn't need it.
Basically Dancer's Template Toolkit view requires you completely alter it or use the default setting. This is pain if you just want to add to it but not have to manage all the changes.
I created a new TT view class, to get inside the TT init and add to the INCLUDE_PATH instead of replace it. The code was a bit involved and I extended it a bit by adding a customization flag in each environment (if needed).
On to the code
Here is the code and config that i used to do this
Disclaimer
I don't recall all the other issues that i ran into while doing this. It was over 6 months ago but post questions if you have them
__END__
Go Pack Go! Go Perl Go!
ReplyDeleteNice Post. To get study abroad in any course. For students who is looking for study medicine in abroad, we will help with end to end services with zero cost.
ReplyDeleteSkolarrssolutions
Mbbs in Russia
Mbbs in UK
Mbbs in Malaysia
Great Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Great Article Cyber Security Projects projects for cse Networking Security Projects JavaScript Training in Chennai JavaScript Training in Chennai The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
ReplyDeleteBeayer Strain Theory
ReplyDeleteSasche Mohr Theory
Pressure difference b/w two point
Preservation of pharmaceutical products
Materials for plant construction
Flow of fluid
Drug synergism and antagonism
Thixotropy/ Measurement of Viscosity/ Instruments
Pharmacodynamic-General introduction
link text
ReplyDeletecara screenshot di laptop
link text
link text