I'm working on migrating an app we have that uses an old home grown template system (in '98 the options were decidedly slimmer then they are now) to using TT2.
I thought that perhaps the simplest intermediate step would be to write a new grammar for TT2 that parses our old grammar. Then we can migrate the templates piece meal. (as no one has time to commit to working through all the templates at once) However my plan has been nipped in the bud. We used a style of: [% DIRECTIVE %] text [% /DIRECTIVE %] instead of TT2's: [% DIRECTIVE %] text [% END %] The problem with this is, my /DIRECTIVE will never make it to my new grammar, as its identified by Parser::tokenise_directive() as a FILENAME before checking to see if its a known directive of some sort. Is there a good solution to this that I'm overlooking? Re-writing Parser.pm would sort of defeat the purpose of what I'm trying to do here. Thanks, kellan [EMAIL PROTECTED]
