It is a different philosophy. This seems more in line with the Kid/ Genshi template language than the web2py template language.
Massimo On Jun 29, 10:08 am, Hans Donner <[email protected]> wrote: > Web2py must stay a python programming framework, and I love the ease > it porvides for a programmer. However, when I want to have great > looking pages re layout etc my design skills are a bit less. So I want > help from somebody who can do great stuff with html, css and jquery > stuff and they prefer tags and javescripts etc, and are less skilled > with python, the part we are great in (and web2py helps us too look > great). And the {{=<insert your favourite pythone code here>}} looks a > bit funny to them, and they cannot use it to generate mockups that we > can easily feed into our web2py app - esp if you have to do some > conversions back and forth. > > Hence the reference to Tapestry, I'm not quite aware how things are > now, but when I worked with it they had both a good framework for the > programming part and allowed the html guys to work with tags that > their tools understand. So they could produce something like the very > simple: > > <html> > <head> > <title>Tutorial: HelloWorld</title> > </head> > <body> > <p>The current data and time is: <strong><span jwcid="@Insert" > value="ognl:new java.util.Date()">June 26 2005</span></strong></p> > <p><a href="#" jwcid="@PageLink" page="Home">refresh</a></p> > </body> > </html> > > The jwcid attributes makes the magic happens, where the html tags > become components that can have certain behaviour. In the example the > @insert will replace the mock value of "june 26 2005" with a realdate. > And yes, the @insert could perhaps be done by some javascript stuff > but that is some other discussion. > > When they render the file, it looks good in their tool and gives a > sence of how the page will look like. When rendered with the framework > it looks even better, cause of all the dynamic stuff that happens and > data from the db is stuffed into that template. > > The current custum forms are rendered with > > {{=form.custom.begin}} > {{=form.custom.widget.somefield}} > {{=form.custom.end}} > > rendering is nice when run in web2py, but doesn't look like html > anywhere else. This might be more html-friendlier for the source: > > <form web2py="form.custom.begin"> > <input type="text" web2py="form.custom.widget.somefield"> > </form> > > (the form.custom.end is implied by the closing form tag linked to > form.custom.begin, and if the widget for somefiled is say a radiobox, > it will replace the current used text input tag) > > This way also tables with specific rendering can be made, making use > of the power of the framework to make it into the live site and by > allowing mock data in the html files so the designer will have some > feeling how it looks like. > > This is not a must, more something I saw somewhere else and what i > liked. For me this does not make web2py into something different what > it is and/or what it should be. It may even be a plugin or so for > web2py. > > On Mon, Jun 29, 2009 at 3:47 PM, ceej<[email protected]> wrote: > > > Hi there, > > > I would just like to say that, web2py is a python programming > > framework not a designing one and it's a lot easier to use than most. > > I can implement the greatest of design that any designer could dream > > up with ease. I do not understand when you say "the html views could > > perhaps bit more html and less python" because they are pure html/css > > when rendered and using the html helpers you can add any ids/classes > > you want which is what you need to integrate a design. (You can also > > use any other python html template plugin out there with web2py like > > genshi etc..). > > > I've also seen other threads where people are going on about jquery > > and they want more integration/widgets for it etc... This is again > > where I would like to say web2py is a python programming framework not > > a javascript one. jQuery comes included yes but you can use any > > javascript framework with web2py you want (I use extjs as well as > > jquery), web2py has jquery included as I would like to call an example > > and I think a lot of people get confused about that for some reason. > > > I feel if we stray to much from web2py being a "python programming > > framework" we'll loose sight of what web2py was meant to be in the > > first place which is an an "enterprise framework for agile development > > of fast, secure and portable database-driven web-based applications. > > Written and programmable in Python". > > > P.S. Thank you again Massimo for starting such a great python > > framework! :D > > > On Jun 29, 6:18 am, "Hans Donner" <[email protected]> wrote: > >> fully agree with this. > >> However, the html views could perhaps be a bit more html and less python > >> so most html tools could be used to build them and without needing much > >> conversions. As indicated, how the java tapestry framework did this is > >> very nice and we could perhaps borrow some ideas from them. > > >> if youre less drag&drop and more source oriented, the current way is > >> perfect and easy to learn. > > >> ------- Original Message ------- > >> From: annet <[email protected]> > >> To: web2py Web Framework <[email protected]> > >> Sent: 29/06/2009, 10:09:26 > >> Subject: [web2py:25222] Re: Web2py is not too designer friendly? > > >> I appreciate web2py as it is. In the past I worked with Adobe GoLive, > >> NetBeans, JDeveloper and ADF and Filemaker. Beautiful software, I > >> implemented use case after use case by simply dragging and dropping > >> components and clicking my way through dialog boxes. However, the > >> moment I wanted to adjust the generated code I was overwhelmed by the > >> amount of code the software had generated in different files. > > >> Web2py is the first framework that allows me to implement my > >> application the way I designed it, my lack of Python knowledge is the > >> limit, not the framework. I love building my own views in html, css > >> and js keeping structure, style and action separated, something none > >> of these IDE's complied with. > > >> I hope web2py will stay as 'clean' as it is, and not become another > >> 'NetBeansese' IDE. > > >> Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

