On 5/8/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote:

On 5/8/06, Robin Haswell <[EMAIL PROTECTED]> wrote:
> class Something(controller.Root):
>         $[[[expose(template="...")]]]
>         def index(self):
>                 """ ... """
>                 pass
>
> Then when we write the template we can change those to the correct form.

Here's a simple solution. Define b (for begin) as "@" or "[" and e
(for end) as "" or "]".

good thinking +1 

${b}expose(template="..")${e}
def index(self):
    ....

The templates aren't pretty, but they're quite easily maintained, no
multiline weirdness, no regex pain.

and we'll needs docs to write templates hehe. :)



Kevin


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