it's not really hard. This page is a complete reference to everything a
plugin might want to do. There is also a quick [[tutorial]].
-[[!template type="note" text="""
+[[!template id="note" text="""
Ikiwiki is a compiler
One thing to keep in mind when writing a plugin is that ikiwiki is a wiki
a page links to. The name of the page is the key; the value is an array
reference. Do not modify this hash directly; call `add_link()`.
+ $links{"foo"} = ["bar", "baz"];
+
### %destsources
The `%destsources` hash records the name of the source file used to
"foo/index.html"), and the value is the source filename that it was built
from (eg, "foo.mdwn"). Note that a single source file may create multiple
destination files. Do not modify this hash directly; call `will_render()`.
+
+ $destsources{"foo/index.html"} = "foo.mdwn";
### %pagesources
of a page. So the key is the page name, and the value is the source
filename. Do not modify this hash.
+ $pagesources{"foo"} = "foo.mdwn";
+
## Library functions
### `hook(@)`