Re: pyblosxom 1.5 rc2 -- release soon?

"Sebastian Spaeth" <[email protected]> Tue, 03 Aug 2010 17:04:06 -0400
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On 2010-08-03, will kahn-greene wrote:
> I haven't looked at your jinja2 renderer, yet.  I'm really really sorry
> about that.  If we could get this working well in 1.6, that'd be really
> great.

No need to be sorry, it is not something that should have been in the
1.5 time frame anyway.
 
> However, there are a few things we need to think about and figure out:
> 
> 1. how does this affect plugins that have their own templates?  would
> they require blosxom templates and also jinja templates?  how do they
> know which set of templates to use?
> 
> 2. would the new renderer expose a different set of rendering callbacks
> or override the existing ones?
> 
> 3. how much effort is it to package up a new renderer plugin like a
> jinja plugin?  does it require additional packaging mojo that our
> current plugin system doesn't do very well?

There are a couple of problems and issues. 

1) The simplest way is just to
replace the snippets of our current templated with jinja renderered
templates. This would be the least intrusive option and allow to insert
(or skip) tags based on the existence of variables etc. On the other
hand, it would mean we still can't set the page title in the <head>
section based on information of a plugin that comes later.

2) The other end of the scale would be a single jinja2 template that
renders a full page. This would have the advantage of being able to set
page-wide variables, but it would not work with the current system of
callbacks and "incremental" templates.

3) I wouldn't mind alternative callbacks to cater for jinja2 needs (or
whatever templating engine we could support. I don't have seintimental
feelings towards blosxom and while many plugins are in "polish mode" I
feel we could adapt them to any callback system we support.

By the way, greetings from Mako, I relayed greetings from you, just to
learn that you don't leave that far away from him. I am still in Boston,
but having to leave on an family emergency right now. Otherwise I would
have loved meeting you IRL.

Sebastian

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm