Template::Plugin::Image throws errors, so I need to wrap it in a TRY
block.

    [% TRY; Image.tag; CATCH; ''; END %]

I don't care if the image doesn't exist in this case, so any way to
write that without the CATCH?

Tried:

    [% TRY; Image.tag; CATCH;  END %]
    [% TRY; Image.tag; END %]


BTW -- not really a problem but I'm wondering if I'm using the Image
plugin correctly:

    USE Image( 
        root = '/var/www/doc_root,
        name = /images/test.png'
    );

works well for "Image.tag", but ends up using catfile so the final
(real file) path has two slashes.


-- 
Bill Moseley
[EMAIL PROTECTED]


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

Reply via email to