raw data is like a time stamp, it is just a integer from a database that contains the exact time. It does not contain the format YY:MM:DD HH:SS you can use cvs or xml or json or anything else for raw data. If raw data contains tags that have to do with formatting like every html tag does, it is not raw data. Meaning its subject to change or misinterpretation of the client.
The difference is, my raw data coming from python never changes, if the client is a phone instead of a monitor or a device that blind people use. If you use a template language written in python, your application code gets multiplied by 3 and all responsibility will be on the python programmer for every device or client. In a business that involves multiple skills, you have to respect each other capabilities, its like a engineer telling a 10 year experience constructor worker how to hold a hammer. No, the engineer just give the raw data to him and tel him to build it. The engineer does not have to change anything if a other construction worker with different skills joins in. On Jul 5, 1:27 am, AchipA <[email protected]> wrote: > 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/trunkandopen > > 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 -~----------~----~----~----~------~----~------~--~---
