Xslate / Catalyst :: View :: Xslate wrapper

I have a Catalyst application that uses TT for views: https://metacpan.org/module/Catalyst::View::TT

and I would like to try https://metacpan.org/module/Catalyst::View::Xslate

We use the WRAPPER directive with the Template Toolkit, and I am curious if it is possible to use the shell with xslate in any way, or will I have to split them into headers and footers?

+2
source share
1 answer

You can theoretically using TTerse syntax . According to the manual, this allows you to use a lot of TT-compatible code, including a simple WRAPPER .

However, there are reservations as described here . Given the philosophical differences between Xslate and TT, it might be easier for you to bite a bullet and simply rewrite your wrapper as the Xslate code of the header and footer.

Or hold Xslate until the next project. Like horses, template engines are hard to change in the middle of the stream. :-)

+1
source

All Articles