Thanks thats what I needed to know.  I don't think it is, or rather I
couldn't find the documentation anywhere
Jose

Philip Jenvey wrote:
> On Jul 5, 2006, at 7:29 PM, Jose Galvez wrote:
>
>   
>> I just wanted a url that ended up looking something like <a
>> href="mycontroller/myaction" class="myclass">link</a> so I don't think
>> routes is what I I'm looking for
>> Jose
>>
>>     
>
> All of the HTML generation functions will take the 'class_' keyword  
> in place of class for this situation:
>
>  >>> link_to('name', '/myapp', class_='aclass')
> '<a href="/myapp" class="aclass">name</a>'
>
> I'm not sure if this is actually documented anywhere.
>
>   
>> Ben Bangert wrote:
>>     
>>> On Jul 5, 2006, at 7:15 PM, Jose Galvez wrote:
>>>
>>>
>>>       
>>>> is is possible to include a class when using link_to? h.link_to
>>>> ('name',
>>>> h.url(action='singleClick'), class='myclass') fails as I would  
>>>> expect
>>>> because class is a python kw.
>>>>
>>>>         
>
> --
> Philip Jenvey
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to