As i really didn't figure out how to implement what you propose, I decided
to do it in the wrong way:

in meta-code I defined:

def elink(text,url,target='_blank'):
    """
    >>>elink('Google','http://google.com')
    '<a href='http://google.com' alt='Google' target='_blank'>Google</a>'
    >>>elink('Google','http://google.com','_self')
    '<a href='http://google.com' alt='Google' target='_self'>Google</a>'
    """
    return XML("<a href='%s' alt='%s' target='%s'>%s</a>" %
(url,text,target,text))

and in my wiki-page:

- ``{{=elink('Python para Desenvolvedores','http://migre.me/RdTv
','_blank')}}``:template

which returns:

<li><a href="http://migre.me/RdTv <view-source:http://migre.me/RdTv>"
alt="Python para Desenvolvedores" target="_blank">Python para
Desenvolvedores</a></li>


I Know it is bad and ugly, but I have to save time now, later I will try to
do what you said.


Tks


2010/7/30 mdipierro <[email protected]>

> You can use the extra parameters to define behaviour yourself
>
> ``link.... http://....``:link_target_blank
>
> extra = {'link_target_blank':lambda x: '<a href="%s" target="_blank">
> %s</a>' % (x.rsplit(' ',1)[1],x.rsplit(' ',1)[0])
>
> On Jul 29, 8:46 pm, Bruno Rocha <[email protected]> wrote:
> > Any way to define the target="_blank" for  [["a link"http://someurl.com
> ]]
> >
> > any way like this: [["a link"http://someurl.com"_blank";]] ???
> >
> > --
> >
> > http://rochacbruno.com.br
>



-- 

http://rochacbruno.com.br

Reply via email to