balupton/docpad — Issue #99: templateData.site global use
Author: Delapouite
Created: 2011-11-06 22:00:40+00:00
State: open

Hi docpaders

In docpad 1.x, a *site* object containing the generating *date* is created in the *generateRender* method.
Unfortunately I find it quite hard to interact with.

I would like to be able to populate it earlier in the process, like for example in the contextualize events through a plugin.
My typical use case for now would be to use it to store global stats, like the total number of comments or the average length of posts' content.
Maybe it's already possible to do this kind of things, don't hesitate to tell me if that's the case.

Thanks