Max.
Yeah, I'd like to see a benchmark of Markup vs. Cheetah as well.
Unfortunately the test Cheetah template has a strange recursion error,
so it's currently not runnable. If someone can figure out why this is
going into an infinite recursion please let me know:
http://markup.edgewall.org/browser/trunk/examples/bench/basic.py#L22
Current benchmarks of Markup and other templating languages are here:
http://markup.edgewall.org/wiki/MarkupPerformance
Work is still ongoing on optimizing portions of the engine in C, so
Markup's performance may have improved some since the benchmarks were
last made.
I plan to update the example of using Markup with TurboGears this week
and will make a more "official" announcement soon.
-- Matt Good
Markup looks really cool, keep up the great work guys! :-)
Ciao
Michele
I agree. Is there a TG plugin for it? Kevin, are you looking at Markup
as a potential replacement as TG's default templating language?
Arnar
Yes, Markup already provides TurboGears support. There's an example
TurboGears app using Markup in the source:
http://markup.edgewall.org/browser/trunk/examples/turbogears
-- Matt Good
-- Matt Good
http://markup.edgewall.org/browser/trunk/examples/turbogears/markuptest/config/app.cfg
# which view (template engine) to use if one is not specified in the
# template name
tg.defaultview = "markup"
> as for it being an example is not the same as a tg template engine, ir you
> miss the part where you easy_install the tg markup pluging?
The markup package *itself* registers the TG plugin (actually the
template plugin system is not even specific to TG.. it can be used with
Buffet, too, isn't it?)
No, "tg.defaultview" is set to "markup" in "markup/config/app.cfg".
If there's another setting I should change please open a ticket on the
Markup Trac site:
http://markup.edgewall.org/
> as for it being an example is not the same as a tg template engine, ir you
> miss the part where you easy_install the tg markup pluging?
I'm not quire sure what you're getting at here. Markup provides the
same "python.templating.engines" entry point required for TG templating
engines. And yes it will need installed with easy_install, or the
"setup.py" script.
The example is definitely tested and fully-functional.
-- Matt Good
Jorge Vargas wrote:
> On 7/28/06, t...@matt-good.net <matt...@gmail.com> wrote:
> >
> >
> > Arnar Birgisson wrote:
> > > On 7/27/06, Michele Cella <michel...@gmail.com> wrote:
> > > > Markup looks really cool, keep up the great work guys! :-)
> > >
> > > I agree. Is there a TG plugin for it? Kevin, are you looking at Markup
> > > as a potential replacement as TG's default templating language?
> >
> > Yes, Markup already provides TurboGears support. There's an example
> > TurboGears app using Markup in the source:
> > http://markup.edgewall.org/browser/trunk/examples/turbogears
>
>
> that seems it's using the same code just changing the templates, but in the
> config files you still have the defaults (kid).
No, "tg.defaultview" is set to "markup" in "markup/config/app.cfg".
If there's another setting I should change please open a ticket on the
Markup Trac site:
http://markup.edgewall.org/
> as for it being an example is not the same as a tg template engine, ir you
> miss the part where you easy_install the tg markup pluging?
I'm not quire sure what you're getting at here. Markup provides the
same "python.templating.engines" entry point required for TG templating
engines. And yes it will need installed with easy_install, or the
"setup.py" script.
Well, most templating engines were written before the template engine
plugin standard was created, so people have just created extra wrapper
packages to make them usable from TurboGears. There's no real
technical reason to keep them separate.
> although your approach seems interesting, any change it may collide with
> another plugin, kid for example?
Not unless Kid decides to change their package name to "markup" ;)
-- Matt Good
> Not unless Kid decides to change their package name to "markup" ;)
>
> -- Matt Good
Matt,
Can you please check if the information at
http://markup.edgewall.org/wiki/MarkupDownload is correct? I've tried using
the SVN repository with the command listed there and I got a 301 (moved
permanently) as a response. Mixing the repository from the easy_install
command with the subversion command worked...
I'll see if I can try markup here and how well it suits my already acquired
Kid knowledge :-)
--
Jorge Godoy <jgo...@gmail.com>
Well, it's right now. Jonas just fixed it 20 minutes ago.
-- Matt Good
> Well, it's right now. Jonas just fixed it 20 minutes ago.
Thanks! :-)
--
Jorge Godoy <jgo...@gmail.com>
so your saying that just installing markup makes it available to be use with TG, that's interesting although normally the TG plugins have been distributed as an aditional package call Turbo* http://www.turbogears.org/cogbin/
although your approach seems interesting, any change it may collide with another plugin, kid for example?
I have a question for you, a little off topic...
Do you think switching to Markup will solve the issue I'm having
here: http://tinyurl.com/grv4v
(In short, I can't get kid to properly extend sitetemplate while
using py:layout -- the result is that the JS and CSS for widgets are
not automatically added.)
--------i