At present, auto_literal interprets whitespace inside the left/right delimiters as meaning those delimiters should be treated as literals.
Is there any reason why this couldn't be extended to include {{ and }}?
(Or to put it another way, is there any legitimate reason why a Smarty template which uses the standard { and } as delimiters would ever use {{ and }} in anything other than a literal context?)
I'm experimenting with ractive.js which makes heavy use of {{ and }}. I have created a pre-filter but ideally Smarty would know that {{ isn't a valid left delimiter just because { is.
Alternatively, is there any way to override the set of "whitespace" characters that Smarty accepts within the delimiters as an indication that the delimiters should be treated literally?
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER