Closed bluefeet closed 10 years ago
I've worked around this issue using MACRO. So the above sample works as:
Foo
[% MACRO foo BLOCK %]
Baz
[% END -%]
[% INCLUDE 'foo.tt' WITH content => foo() %]
Bar
I think that properly simulates TT wrappers, at least it appears so.
Maybe the fix is to just document this workaround?
As you has pointed at, WRAPPER is not completely compatible with TT. Using MACRO is the best solution for it. Thanks.
A template like this:
Does not render "Foo" and "Bar" strings and actually produces these warnings:
In vanilla-TT I'm able to render content before and after wrappers, and can even include multiple wrappers in the same document. Seems TTerse doesn't allow this, which greatly diminishes TTerse as a useful syntax for transitioning an existing TT site to Xslate. Any ideas?