On Tue, Nov 1, 2011 at 6:50 PM, Mariano Benitez <[email protected]>wrote:

> Thanks Brian,
>
> Further question: is there a way to create a similar tag and register it?
> so I do not need to rewrite all my templates.. :)
>

You can look here for the current implementation:
http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/ext/webapp/template.py#271

But, depending on the design of your application, I'd consider:
1. changing your templates
2. using django.templates directly

Cheers,
Brian


>
> Something like this might work?
>
> from google.appengine.ext import webapp
>
> register = webapp.template.create_template_register()
>
> def url(blah???):
>   pass # but not really, do something here...
>
> register.tag(url)
>
>
> Does anyone have a snippet to get urls in the new runtime?
>
> Thanks!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/9oRrOHqPKvcJ.
>
> 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/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to