Hey guys,
I'm having some trouble with WebHelpers (TG 2.0 with Mako templates).
The documentation seems to be a bit misleading/confusing about
accessing helpers from within the templates (in some places it says to
use h.html.tags, in others I've seen helpers.html.tags), but on top of
that I can't seem to find a bunch of the methods such as
html.link_to_if, html.link_to_unless, html.tags.stylesheet_link, etc.
In my Mako templates I've managed to get ${h.html.HTML.a('Home
href=tg.url('/'))} working, but it seems like there should be a
simpler way.
Could someone please shine some light on my confusion?
Also, a "TG v2.x Cheatsheet" (like
http://wiki.pylonshq.com/display/pylonsmisc/Pylons+Cheatsheet)
would be incredibly helpful to TG newbies!
Thanks,
Seth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---