<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 4 December 2014 at 20:31, Larry Leszczynski <span dir="ltr">&lt;<a href="mailto:larryl@emailplus.org" target="_blank">larryl@emailplus.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><br>
On Thu, Dec 4, 2014, at 12:41 PM, Trevor Leffler wrote:<br>
&gt; This is a typical use:<br>
&gt;<br>
&gt; &lt;link href=&quot;[% c.uri_for(&#39;/static/css/my_style.css&#39;) | html %]&quot; rel=&quot;stylesheet&quot;&gt;<br>
<br>
</span>Assuming you&#39;re using Template Toolkit, you should use the &quot;url&quot; filter,<br>
not the &quot;html&quot; filter:<br>
<br>
   &lt;link href=&quot;[% c.uri_for(&#39;/static/css/my_style.css&#39;) | url %]&quot;<br>
   rel=&quot;stylesheet&quot;&gt;<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>afaik a url should be uri encoded when it&#39;s a url, and everything should be html encoded when in html. the point being uri_for already uri_encodes the url, and you should then html encode it when embedding it on the page<span class="">, as &#39;&amp;&#39; is valid in a url, but not vaild in html</span><br><br></div><div>so <span class="">&lt;link href=&quot;[% c.uri_for(&#39;/static/css/my_style.css&#39;) | html %]&quot; rel=&quot;stylesheet&quot;&gt; would be the correct method<br></span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><font color="#888888">
Larry<br>
</font></span><div class=""><div class="h5"><br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br></div></div>