sidebar calendar plugin
why the lucky stiff
why at hobix.com
Tue Sep 28 13:19:33 EDT 2004
William Morgan wrote:
>_why, what do you recommend? I could use another layer of SSI, putting
>the calendar contents themselves in separate files---this wouldn't
>eliminate all the file regeneration, but would lessen its cost. Or you
>could add a mechanism for propagating last-modified times up through
>the _erb methods... could get ugly.
>
Well, the calendar shouldn't need to regenerate everytime there's an
update. Because creation times don't really change. If they do, then
it's probably best to regenerate the whole site, because archive pages
would have to change as well.
So, if you're storing the calendar in an SSI, make sure that SSI's
`Page.updated' timestamp is set to the latest creation date among posts
in that month. There's a storage.last_created method as well, which
takes an array of [entry_id, creation_time] (which you'll get back from
storage.all or storage.find or storage.inpath and so on.)
I'll play with this calendar further and help come up with some ideas.
I think the ideal route for this plugin would be JavaScript + divs of
all months in a single SSI. Provide an archive link (or bag the arrows)
for people without JS.
_why
More information about the Hobix-is-the-way
mailing list