That's why I avoid using the INTERPOLATE configuration option, to be honest. 
But once you have code everywhere that uses it, it's difficult to remove.

Is the reverse an option? eg place the line in regular tags and single-quote to 
avoid interpolation by TT?

<script>[% '$(document)' %].ready({...

cheers
RET

Sent from my iPad

> On 8 Mar 2016, at 6:58 AM, Lathan Bidwell <lat...@andrews.edu> wrote:
> 
> You could stop using $'s outside of TT tags, and turn off the Interpolate 
> configuration:
> 
> http://template-toolkit.org/docs/manual/Config.html#section_INTERPOLATE
> 
> 
> Lathan Bidwell
> 
>> On Mon, Mar 7, 2016 at 2:37 PM, Aaron Macks <upell...@gmail.com> wrote:
>> I was trying to avoid having another file to manage, especially since
>> this is only used in a single place and only a single line of code.
>> 
>> Aaron
>> 
>> On 3/7/16 2:35 PM, Steven Cotton wrote:
>> > On 7 March 2016 at 19:12, Aaron Macks <upell...@gmail.com
>> > <mailto:upell...@gmail.com>> wrote:
>> >
>> >     the problem is that TT tries to interpolate the $ and it all gets
>> >     messed up
>> >
>> >
>> > WRAPPER blocks are processed. You could call INSERT at the end of your
>> > wrapper, which will deliver the file as-is:
>> >
>> > http://template-toolkit.org/docs/manual/Directives.html#section_INSERT
>> >
>> > Steve.
>> 
>> --
>> _______________________________________________________
>> Aaron Macks(aar...@wiglaf.org) [http://www.wiglaf.org/~aaronm ]
>> My sheep has seven gall bladders, that makes me the King of the Universe!
>> 
>> _______________________________________________
>> templates mailing list
>> templates@template-toolkit.org
>> http://mail.template-toolkit.org/mailman/listinfo/templates
> 
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to