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. :-)
source share