In the same sample chapters I see this 4 (i didn't look for them all)

@turbogears.expose( html=".templates.login")
@turbogears.expose(template="bookmark.templates.list")

@turbogears.expose (template=".templates.index") 

@turbogears.expose(template="hello.templates.welcome")
   
the first 2 belong to the same snip of code.

the third one is the same project but diferent part of the code.

the last one is from chapter number 2


if I'm not mistaken all are valid and do the same thing,

So my question is should we encourage one or let it free? for the book i think you guys should stay with one format for the book,


My humble opinion #3 is the best practice since hardcoding is bad :D

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

Reply via email to