On 4/11/07, Michael Bayer <[EMAIL PROTECTED]> wrote: > > > On Apr 10, 2007, at 9:09 PM, kai wrote: > > > > > > > I want to start using Myghty or Mako so I have less boilerplate in my > > code. Has anyone > > had similar experiences with designers? How do I get them onboard > > with using a more powerful > > templating solution at the cost of some python in their html. > > > > > if youre in an organization that really doesnt want code intermixed > in templates, better to not force it on them. genshi definitely the > cleanest most non-code-ish approach, or Jinja if they go for that > sort of thing. the biggest argument for mako is that its (one of) > the fastest. > > the mako thing is definitely in a certain cultural camp and I wouldnt > expect it to be appropriate in all cases. you could also mix > templating approaches wtih pylons, maybe even at the component level > using something like toscawidgets or a little bit of glue between > disparate systems (mako's API allows defs to be called from python > code, for example, which you could call from within a genshi template).
I'll throw out another +1 for Genshi! In my 7 years as a Web developer, I've come to strongly believe that designers should give me HTML and CSS to show me how things should look, and I should be in charge of HTML and CSS in the application itself. Designers don't understand the don't repeat yourself principle. Most of them don't really even understand CSS. If you want to stay agile and be able to change your look and feel quickly, you're better off taking an engineering approach to the templating. Avoid repeating yourself, even in the HTML and CSS! Of course, that's just my opinion. Happy Hacking! -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
