On 15/07/03 James Price did say:

> cache_mem { db_get_prop($confref, "squid", "CacheMem") } MB
> cache_dir ufs /var/spool/squid { db_get_prop($confref, "squid", "CacheDir")
> } 16 256
> maximum_object_size { db_get_prop($confref, "squid", "MaxObjectSize") } KB
> minimum_object_size { db_get_prop($confref, "squid", "MinObjectSize") } KB

    If you read the POD documentation in esmith::templates, all should
be explained. You should not require esmith::db calls (not to mention
they are deprecated in favour of esmith::ConfigDB) inside a template.
The entire configuration database is available in the template
namespace, with singleton values as scalars, and the other records as
hashes. 

    Instead of 

cache_mem { db_get_prop($confref, "squid", "CacheMem") } MB

    try

cache_mem { $squid{CacheMem} } MB

    Mike

-- 
Michael P. Soulier <[EMAIL PROTECTED]>, 613-592-2122 x2522
SME Solutions, Mitel Networks Corporation
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to