#601915 ikiwiki: cgi plugin: run format hooks in CGI mode, patch included

#601915#5
Date:
2010-10-31 01:44:25 UTC
From:
To:
Hi,

Is there any particular reason why format hooks are not run against the content
generated by IkiWiki CGI? For instance I'd like to include some JavaScript code
fetch from an external JavaScript file also in the CGI content without forking
any templates just for this cause. So I wrote a plugin that rewrites the
content HTML to include proper <script> elements in the document. Works great
for static files, but not for the content output by IkiWiki in CGI mode.

If there's no obstacles with this idea that I'm not aware of, please consider
merging the attached patch that enables format hooks for CGI. Thanks.