I would like to chime in... I agree with Lee and Fred.
@expose makes more sense in my mind. I also agree with Lee
that a change from 'template' to 'view' would truly accomplish the goal.
I can expose methods through the web server without really presenting
a 'view' at all, but if I use a template then I really want to see something
out the other end. That's more intuitive and follows my thought process more
closely.
If it's not too late to vote, then -10 on @view and +100 on 'template' changing
to 'view' as an argument of @expose... Opps, is it OK to vote more than once???

Nicky

On 8/5/06, Lee McFadden < [EMAIL PROTECTED]> wrote:

What's wrong with the current decorator?  I think it tells you what
it's doing...  exposing the method to the web.

If you're worried about symantics, IMHO the "view" should be within
the decorator itself instead of template.

@expose(view="path.to.template ")

Having both @expose and @view do the same thing is also a bad idea.  I
guarantee it will confuse issues for people.  Of all the questions
I've been asked on IRC, I've never been asked to any length what
@expose does so it must make sense for the majority.

Lee

--
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com


G-Mail Account
--~--~---------~--~----~------------~-------~--~----~
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