Re: a very weird bug/error in my jinja2 templates
- From:
- alice ni
- Date:
- 2010-11-13 @ 18:06
I just got that, it is possibly supposed to be that way, I mean
possibly all attrs are supposed to be in the lowercase.With reference
to the case of Dojo, I had forgotten to add dojo.parser.parse() on
load... Spent last 5-6 hours on this, digging through wireshark and
all....
On Sat, Nov 13, 2010 at 11:23 PM, alice ni <alice.ni19@gmail.com> wrote:
> Hi , It just might be something that I have done, but I dont seem to
> understand it. I am trying to create a div like the below:-
>
> <div id="mydiv" dojoType="dijit.layout.ContentPane"></div>
>
> I load the template, but when the widget does not display properly,
> first I checked the source(right click and view source) and I find it
> to be the same as above.
>
> However when I check the rendered html using firebug, I find that
> dojoType has been changed to dojotype(all lowercase)..Thinking that It
> should have something to do with dojo, I use a dummy attr
> like this:-
> <div id="mydiv" LIFE="check">
>
> But again it is the same , converts to all lower case in the rendered HTML.
>
> However I have all other templates which are running fine with jinja2
> and with the same dojoType attr in div tags.. I fail to understand
> what is happening.
>
> The server side function is just a simple render function like below:-
>
> @app.route('/mypage')
> def showpage():
> return render_template('mypage.html')
>
> All the old templates in the same app are running fine , and any new
> templates I am making are turning out to be like this.....Just dont
> understand anything..
>