Consider:
                        [% fname = rec.filename | uri %]
                        <img src="[% c.uri_for("${directory}/${fname}") %]" 
alt="photo" />

Is there a more succinct way to write this?  I want to apply the uri filter to 
the component of the url, not the whole string.  I couldn't figure out a way 
other than breaking it into a helper line.  Can this be done within the single 
expression?

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to