[tg-trunk] Re: Supported Template Engines

2009-05-18 Thread percious

I feel that the mako support is just as good as genshi, in terms of
the framework code.  I primarily use mako for it's concise syntax and
speed.  I have built master/index for mako and would be happy to
publish them, but I have received a bit of pushback from the TG2 team
whilst recommending adding them to the quickstart template (no one
wants to be responsible for their maintenance, although I volunteered
for the job).  The mako version of quickstart is 400% faster for the
index page, and it speeds up the Admin pages by about 50%.

cheers.
-chris

On May 14, 4:07 pm, cd34 mcd...@gmail.com wrote:
 Mako and Cheetah seem to have rudimentary support, but, aren't well
 supported.

 Genshi seems to be very well supported, but, quite a bit of the
 development points to jinja2.

 Is jinja2 going to be the primary engine? or should I stick with
 genshi?  Jinja2 has some nice features that I would like to use, but,
 I would prefer to use whatever the primary engine is that TurboGears
 is going to stick with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to 
turbogears-trunk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~--~~~~--~~--~--~---



[tg-trunk] Re: Templating: .mak vs .mako vs Genshi

2009-05-18 Thread percious

.mak is also what TW uses, so there might be some historical
justification for using .mak

I personally +1 the effort to move over to .mako, and could/would make
the change in TW to match.

cheers.
-chris

On May 14, 10:27 pm, Jorge Vargas jorge.var...@gmail.com wrote:
 On Wed, May 13, 2009 at 3:00 AM, Seth seedifferen...@gmail.com wrote:

  I've been lurking in the #turbogears channel from time-to-time and
  have observed some discussion of whether future TG releases should
  have genshi or mako set as the default templating engine.

  Having never tried Mako in a TG setting, I decided to fire up a new TG
  2 test app to mess around with TG+Mako. I had the hardest time,
  however, figuring out why TG wouldn't load my *.mako templates; until
  I saw a post somewhere stating that TG uses .mak as its Mako
  extension, not .mako.

 This is a bug/anti-feature of TW and the very old Buffet stuff. To be
 honest I don't remember why anymore.

 IMO they should be switch to .mako they just need someone to do the
 work. But it needs to be fixed in TW and TG.

  Weird. Why is this? Is there a simple config variable somewhere to
  make it load *.mako instead? (yes I'm lazy and would rather keep the
  same file extension for my pylons and tg mako templates)

 no, there is no config. .mak shouldn't be anyway.

  Also on a side note: I've noticed that the default TG 2 setup.py's
  message_extractors line looks like it's matching '*.mako'. Is this a
  bug?

 Most likely. But the bug is .mak

  Thanks,
  Seth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to 
turbogears-trunk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~--~~~~--~~--~--~---



[tg-trunk] Re: Supported Template Engines

2009-05-18 Thread Mark Ramm

I am fine with adding them to quickstart in 2.1 as an option.   In
fact I think that could be very useful.

I think there are some concerns about the complexity of the QS
template, and I think that we do need to be mindful of that, but
supporting Mako out of the box is an important goal.

--Mark Ramm

On Mon, May 18, 2009 at 10:24 AM, percious ch...@percious.com wrote:

 I feel that the mako support is just as good as genshi, in terms of
 the framework code.  I primarily use mako for it's concise syntax and
 speed.  I have built master/index for mako and would be happy to
 publish them, but I have received a bit of pushback from the TG2 team
 whilst recommending adding them to the quickstart template (no one
 wants to be responsible for their maintenance, although I volunteered
 for the job).  The mako version of quickstart is 400% faster for the
 index page, and it speeds up the Admin pages by about 50%.

 cheers.
 -chris

 On May 14, 4:07 pm, cd34 mcd...@gmail.com wrote:
 Mako and Cheetah seem to have rudimentary support, but, aren't well
 supported.

 Genshi seems to be very well supported, but, quite a bit of the
 development points to jinja2.

 Is jinja2 going to be the primary engine? or should I stick with
 genshi?  Jinja2 has some nice features that I would like to use, but,
 I would prefer to use whatever the primary engine is that TurboGears
 is going to stick with.
 




-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to 
turbogears-trunk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~--~~~~--~~--~--~---