]> oss.titaniummirror.com Git - webber.git/blobdiff - in/hooks.md
toc.py: now we can generate a table-of-contents
[webber.git] / in / hooks.md
index bcf86c0127e89c0d18c2a2d733010d04cad859db..c30a2588f61d9bf23e62cced630191843bb995cd 100644 (file)
@@ -1,6 +1,6 @@
 title: Hooks
 parent: Webber
-ctime: 2009-06-26
+ctime: 2009-06-24
 
 = At Startup =
 
@@ -145,8 +145,12 @@ The first hook that returns HTML, no other hooks will be called.
 
 == linkify ==
 
-This hook should contain any link to html. Implemented by the plugin
-[[link]].
+Functions that are called by this hook receive a pre-rendered HTML page.
+They can now modify this HTML further, e.g. py converting links to HTML.
+
+They can directly modify params.file.contents and don't need to return anything.
+
+Implemented by the plugin [[link]] and [[toc]].
 
 * "`params.direc`" contains a "`class Directory`" object
 * "`params.file`" has a "`class File`" object