I use Template Toolkit to generate views of pages in Catalyst. To do some basic Ajax, I want to have some output pages not use the TTSite style, but a much more basic structure. Do I put something special into the stash to use a .tt2 file without the header/footer/etc that automatically comes with the rest of my templates? (site generated following tutorial instructions.)
Share
Aha, lib/projectname/View/TT.pm has:
and in root/lib/site/wrapper, I find:
So if I name my non-wrapper template .txt, I can avoid site/html + site/layout.
Or maybe even better, I can make a .ajax extension and add that to the list of pass-through templates.