verbatim doesnt work on gae and needed to use polymer with django

119 views
Skip to first unread message

toduu

unread,
Nov 8, 2014, 10:54:02 AM11/8/14
to polym...@googlegroups.com
I have not been able to figure out how to use django and polymer together on gae.  The { %verbatim %} does not work I tried to switch to jinja2 {%raw%} works but there is enough other django to jinja2 migration issues that I have given up on it.   Is there some simple tutorial outlining how to use gae, django and polymer?  

Eric Bidelman

unread,
Nov 9, 2014, 4:42:19 PM11/9/14
to toduu, polymer-dev
Can you explain more why wrapping polymer content in {%verbatim %} doesn't work?

I briefly explored doing so in  https://github.com/GoogleChrome/chromium-dashboard/blob/master/templates/features.html#L52 and don't remember having any issues.

Generally, we recommend defining elements in a separate file and using an HTML import to load it. That would avoid the problem of django stomping on the `{{}}` bindings.

On Sun, Nov 9, 2014 at 2:54 AM, toduu <vik...@gmail.com> wrote:
I have not been able to figure out how to use django and polymer together on gae.  The { %verbatim %} does not work I tried to switch to jinja2 {%raw%} works but there is enough other django to jinja2 migration issues that I have given up on it.   Is there some simple tutorial outlining how to use gae, django and polymer?  

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/d91abc74-89e9-49ce-8447-66fb53781123%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages