Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • It may be just right. Mainly because not having so many delimiters could be worse: requiring the need for hard-to-read escaping.

    On another note, maybe one of the delimiters of the mentioned template piece could disappear, by writing something like:

    a href=[% uri_for('add_size', {product_id => product.id}) | qq %]>Add new size</a>

    where the qq filter would add the leading and trailing quotes and would take care of any necessary entity-escaping. It hardly contributes to the original intent of your note, but it improves on the correctness of producing HTML attribute values. (The assumption "this never has characters that need escaping" is an invitation for future pain.)