in lib/helpers.py add:
from webhelpers.html import literal

so in template you can now write sth like that:
${h.link_to(h.literal('<span class="add">Add review</span>'),
url(.....))}

Cheers,
Rafal
On 17 Maj, 18:10, gazza <[email protected]> wrote:
> Hello,
>
> I am having a wee problem attempting to merge a css span object with a
> helper link_to method.
>
> I have:
>
> <a class="button" href="#" <span> Click to review order</span>
>
> and
>
> [${h_link_to('review
> order',h.url_for(controller='client',action='clientorderlist',id=c.id))}]
>
> not sure how to merge them both together. Appreciate any guidance on
> this.
>
> Cheers,
> Garyc
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/pylons-discuss?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to