
paulo at digitalcraftsmen
Mar 2, 2009, 8:54 AM
Post #3 of 5
(1112 views)
Permalink
|
David E. Wheeler wrote: > On Mar 2, 2009, at 6:58 AM, Scott Lanning wrote: > >> So... who's lying? I assume the idea >> is that not everybody will use HTML::Template. >> In lib/Bric/Util/Burner.pm , we have >> >> require Bric::Util::Burner::Template if eval { require HTML::Template }; >> >> Should it also require HTML::Template::Expr, or what? > > It should only load it if HTML::Template loads. IOW, it should be optional. If you have HTML::Template installed on your bricolage server then you have to have to have HTML::Template::Expr installed even if you're not using HTML::Template for bricolage, since the eval will load it if it exists. So going on the code snippet from the burner, HTML::Template::Expr should be mandatory if HTML::Template exists. Separately it would be really nice to tell bricolage - "Please don't load HTML::Template even though it's installed on the server, you don't need it" when PREVIEW_MASON is enabled " ... yeah yeah I know patches welcome :-) regards, Paul -- Paul Orrock Digital Craftsmen Lead SysAdmin www.digitalcraftsmen.net Exmouth House, 3 Pine Street, London, EC1R 0JH Tel: 020 7183 1410 Fax: 020 7099 5140
|