Re: "ignore" a section

Lathan Bidwell <[email protected]> Mon, 7 Mar 2016 14:58:31 -0500
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CAOqPvqgg7WAZkQYDorVwe79L-hi0Gk3ZSQ+F+pO6UTQ2DcBRzQ@mail.gmail.com>
--===============1714261429924659566==
Content-Type: multipart/alternative; boundary=047d7b5d4604c63b43052d7ae47d

--047d7b5d4604c63b43052d7ae47d
Content-Type: text/plain; charset=UTF-8

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 <[email protected]> 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 <[email protected]
> > <mailto:[email protected]>> 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([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
>

--047d7b5d4604c63b43052d7ae47d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">You could stop using $&#39;s outside of TT tags, and turn =
off the Interpolate configuration:<div><br></div><div><a href=3D"http://tem=
plate-toolkit.org/docs/manual/Config.html#section_INTERPOLATE">http://templ=
ate-toolkit.org/docs/manual/Config.html#section_INTERPOLATE</a><br></div><d=
iv class=3D"gmail_extra"><br clear=3D"all"><div><div class=3D"gmail_signatu=
re"><div dir=3D"ltr"><div><div dir=3D"ltr"><b style=3D"color:rgb(0,0,0);fon=
t-family:Calibri,sans-serif;font-size:14px"><div><br></div><div style=3D"fo=
nt-family:Verdana,Helvetica,Arial;font-size:9pt">Lathan Bidwell</div></b></=
div></div></div></div></div><br><div class=3D"gmail_quote">On Mon, Mar 7, 2=
016 at 2:37 PM, Aaron Macks <span dir=3D"ltr">&lt;<a href=3D"mailto:upellur=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">I was trying to avoid having another file to=
 manage, especially since<br>
this is only used in a single place and only a single line of code.<br>
<br>
Aaron<br>
<br>
On 3/7/16 2:35 PM, Steven Cotton wrote:<br>
&gt; On 7 March 2016 at 19:12, Aaron Macks &lt;<a href=3D"mailto:upelluri@g=
mail.com">[email protected]</a><br>
<span class=3D"">&gt; &lt;mailto:<a href=3D"mailto:[email protected]">upel=
[email protected]</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0the problem is that TT tries to interpolate the $ a=
nd it all gets<br>
&gt;=C2=A0 =C2=A0 =C2=A0messed up<br>
&gt;<br>
&gt;<br>
</span>&gt; WRAPPER blocks are processed. You could call INSERT at the end =
of your<br>
&gt; wrapper, which will deliver the file as-is:<br>
&gt;<br>
&gt; <a href=3D"http://template-toolkit.org/docs/manual/Directives.html#sec=
tion_INSERT" rel=3D"noreferrer" target=3D"_blank">http://template-toolkit.o=
rg/docs/manual/Directives.html#section_INSERT</a><br>
&gt;<br>
&gt; Steve.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><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>
</div></div></blockquote></div><br></div></div>

--047d7b5d4604c63b43052d7ae47d--


--===============1714261429924659566==
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

--===============1714261429924659566==--