On Wed, Aug 02, 2006 at 07:51:13PM -0700, Randal L. Schwartz wrote: > >>>>> "Bill" == Bill Moseley <[EMAIL PROTECTED]> writes: > > Bill> page.style_sheet = []; > > Bill> MACRO include_style_sheet( name ) BLOCK; > Bill> css_found = 0; > Bill> FOR css = page.style_sheet; > Bill> IF css == name; > Bill> css_found = 1; > Bill> LAST; > Bill> END; > Bill> END; > Bill> page.style_sheet.push( name ) UNLESS css_found; > Bill> END; > > Why are you using an array when a hash would be so much easier?
Sure, anyone can use a hash. ;) Well, it's copied from code I used for loading javascript and I wanted to load the javascript in a specific order. -- Bill Moseley [EMAIL PROTECTED] _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
