Re: "ignore" a section
Sherwood Botsford <[email protected]> Sun, 6 Mar 2016 18:06:10 -0700
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAOX=2F9xHv0j1G72e8m3KfNQ9=CeZ=oeRFeNQNy4g=btd5Ztkg@mail.gmail.com> |
--===============1055575227798897795== Content-Type: multipart/alternative; boundary=94eb2c086638626856052d6b1433 --94eb2c086638626856052d6b1433 Content-Type: text/plain; charset=UTF-8 Keep it in a separate file and INCLUDE it? This also separates functions: Templates are for layout. Markdown or whatever for content. .js files for javascript. Respectfully, Sherwood of Sherwood's Forests Sherwood Botsford Sherwood's Forests -- http://Sherwoods-Forests.com Online Inventory https://docs.google.com/spreadsheets/d/10u28L2gCe6wSdAZWwXRMZKi90M7dNYQrCcyE_QWEOZw/edit?usp=sharing O: 780-848-2548 C:780-863-7311 50042 Range Rd 31 Warburg, Alberta T0C 2T0 On 6 March 2016 at 15:50, Aaron Macks <[email protected]> wrote: > I've got to add some javascript into a template, and the $ in the js > code is getting interpolated incorrectly. How do I disable > interpolation for a block of code, or simply tell TT, "just print this > code unprocessed"? > > Thanks > Aaron > -- > _______________________________________________________ > Aaron Macks([email protected]) [http://www.wiglaf.org/~aaronm ] > My sheep has seven gall bladders, that makes me the King of the Universe! > > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates > --94eb2c086638626856052d6b1433 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Keep it in a separate file and INCLUDE it?<div><br></div><= div>This also separates functions: =C2=A0Templates are for layout.=C2=A0 Ma= rkdown or whatever for content. =C2=A0.js files for javascript.</div></div>= <div class=3D"gmail_extra"><br clear=3D"all"><div><div class=3D"gmail_signa= ture"><div dir=3D"ltr"><div>Respectfully,<br><br>Sherwood of Sherwood's= Forests<br><br>Sherwood Botsford<br>Sherwood's Forests --=C2=A0 <a hre= f=3D"http://Sherwoods-Forests.com" target=3D"_blank">http://Sherwoods-Fores= ts.com</a></div><div>Online Inventory=C2=A0</div><div><a href=3D"https://do= cs.google.com/spreadsheets/d/10u28L2gCe6wSdAZWwXRMZKi90M7dNYQrCcyE_QWEOZw/e= dit?usp=3Dsharing" target=3D"_blank">https://docs.google.com/spreadsheets/d= /10u28L2gCe6wSdAZWwXRMZKi90M7dNYQrCcyE_QWEOZw/edit?usp=3Dsharing</a><br>O: = 780-848-2548 C:780-863-7311<br>50042 Range Rd 31<br>Warburg, Alberta T0C 2T= 0<br><br></div></div></div></div> <br><div class=3D"gmail_quote">On 6 March 2016 at 15:50, Aaron Macks <span = dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">upe= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" = style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#= 39;ve got to add some javascript into a template, and the $ in the js<br> code is getting interpolated incorrectly.=C2=A0 How do I disable<br> interpolation for a block of code, or simply tell TT, "just print this= <br> code unprocessed"?<br> <br> Thanks<br> <span class=3D"HOEnZb"><font color=3D"#888888">Aaron<br> --<br> _______________________________________________________<br> Aaron Macks(<a href=3D"mailto:[email protected]">[email protected]</a>) [<a= href=3D"http://www.wiglaf.org/~aaronm" rel=3D"noreferrer" target=3D"_blank= ">http://www.wiglaf.org/~aaronm</a> ]<br> My sheep has seven gall bladders, that makes me the King of the Universe!<b= r> <br> _______________________________________________<br> templates mailing list<br> <a href=3D"mailto:[email protected]">templates@template-toolki= t.org</a><br> <a href=3D"http://mail.template-toolkit.org/mailman/listinfo/templates" rel= =3D"noreferrer" target=3D"_blank">http://mail.template-toolkit.org/mailman/= listinfo/templates</a><br> </font></span></blockquote></div><br></div> --94eb2c086638626856052d6b1433-- --===============1055575227798897795== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates --===============1055575227798897795==--