Re: repetitive string in attrributes - advice/tactics requested

Bruno Postle <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
On Sun 28-Aug-2005 at 13:38 -0400, jonathan vanasco wrote:
> 
> 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

Sure something like this should do it:

  <div
    xmlns:petal="http://purl.org/petal/1.0/"
    petal:define="baselink: index.cgi?a=1&amp;b=2&amp;c=3"
  >
    <a
      href="#"
      petal:attributes="href string:${baselink}${foo}"
    >Click here!</a>
  </div>

-- 
Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.