<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 4 December 2014 at 20:31, Larry Leszczynski <span dir="ltr"><<a href="mailto:larryl@emailplus.org" target="_blank">larryl@emailplus.org</a>></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>
> This is a typical use:<br>
><br>
> <link href="[% c.uri_for('/static/css/my_style.css') | html %]" rel="stylesheet"><br>
<br>
</span>Assuming you're using Template Toolkit, you should use the "url" filter,<br>
not the "html" filter:<br>
<br>
<link href="[% c.uri_for('/static/css/my_style.css') | url %]"<br>
rel="stylesheet"><span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>afaik a url should be uri encoded when it'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 '&' is valid in a url, but not vaild in html</span><br><br></div><div>so <span class=""><link href="[% c.uri_for('/static/css/my_style.css') | html %]" rel="stylesheet"> 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>