Subject: | Compound IF statements aren't autofiltered |
Currently one limitation is that statements like the following aren't autofiltered:
[% IF foo; bar; ELSE; baz; END %]
Unfortunately, it's a little more complicated because trying to filter the whole result by tacking | html onto the end is a syntax error. I suppose split_text could break at ; tokens and recurse the "do I autofilter this or not?" logic on the inner statements. Perhaps that's more than is necessary though, and special-casing the simple ternary style above would help 90% of cases.
Thanks for this module, by the way. I inherited a large collection of TT2 templates and couldn't believe it didn't have native default filtering! I would like to switch to AutoFilter, so I may make a patch myself and submit it unless someone beats me to it.
Thomas