[Petal] repetitive string in attrributes - advice/tactics requested

jonathan vanasco jvanasco at mastersofbranding.com
Sun Aug 28 18:38:18 BST 2005


i'm generating [a href=""]  on the fly a lot

the problem i'm having is that the bulk of the href is the same: ie
     index.cgi?a=1&b=2&c=3&...z=1
     index.cgi?a=1&b=2&c=3&...z=2
     index.cgi?a=1&b=2&c=3&...z=3

my understanding of tal requires me to create the full href each time

is there any sort of magic where i would be able to not need to  
specity the entire string?
maybe something like:
   baselink = index.cgi?a=1&b=2&c=3&..
   href=baselink + attribute specific var

i didn't really care about this until i started generating 40+ links  
on some pages with the full string, and that just seems a little  
wasteful of resources



More information about the Petal mailing list