But... what's the difference ? It sounds to me you still have a template, just traded it to json interpreted in js (instead of a different format interpreted by a different language). If you want your templating system to be independent from the language, that's not new territory either (think, say, XSLT).
On Jul 4, 11:18 pm, gert <[email protected]> wrote: > On Jul 4, 2:00 am, Aaron Watters <[email protected]> wrote: > > > > I am sooooo against template languages of any kind sorry > > > Thanks for the comment. Why? > > It's kind of like being against higher level languages, prefering > > to use only assembly language, in my opinion. > > > I really enjoy writing things like > > > {{include "footnote"}} It's fun to use footnotes. {{/include}} > > > embedded in HTML files using WHIFF > > myself.http://aaron.oirt.rutgers.edu/myapp/docs/W1500.whyIsWhiffCool > > > How do you do this using embedded javascript? > > Believe it or not, every template language out there makes your life > and defenatly from others, more complicated :) > Let me explain. > Most of the time your code looks like this > > server side > ----------------- > calculate > calculate > calculate > do layout if this > do layout if that > calculate > return layout > > client side > --------------- > receive layout > display > > What i recommend you do is this > > server side > --------------- > calculate > calculate > calculate > calculate > return data > > client side > ---------------- > receive data > generate layout > generate layout > generate layout > display > > Why ? > 1) You never ever have to change your server script ever again no > matter what W3C decides or which mobile browser is going to be the > next big thing. > 2) You server code looks cleaner then the toilet of the white house. > 3) You can ask other to do the layout for you and they don't have to > know anything about your server, actually they don't even have to know > anything about python. > > Let put it this way, if you are using a browser, i am sure i can > transform raw data preferably json style into what ever layout you > want using js. > Exampleshttp://code.google.com/p/appwsgi/source/browse/trunkand open > the plain xhtml file inside the www/user folder and notice not a > single line of code in my wsgi or python files has anything not even > the slightest thing to do with xhtml css or other browser stuff. Note > that i do use firefox 3.5 :P > Als notice this is pure js and it does not care if the data comes from > php, python or whatever is running on the server. > > My conclusion over the years is, that python programmers suck at > making websites, and photoshop artiest defenatly suck at python. So > don't try to combine it, because it is never going to work the way you > want other people, especially non python people to use it. > > I personally obay one rule, if the python project contains one line > that has to do with html code, just start over :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
