summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-29 18:51:16 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-29 18:51:16 -0400
commit2d45a303e253c4a20ce456a82e8ac694b49c2c2d (patch)
treee5f9adb67b471d9d9712ea5225185f8bba738424 /doc
parenta7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6 (diff)
add newpagefile function
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 4e27d361d..1b78f5900 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -691,6 +691,12 @@ destination file, as registered by `will_render`.
If the third parameter is passed and is true, an absolute url will be
constructed instead of the default relative url.
+#### `newpagefile($$)`
+
+This can be called when creating a new page, to determine what filename
+to save the page to. It's passed a page name, and its type, and returns
+the name of the file to create, relative to the srcdir.
+
#### `targetpage($$)`
Passed a page and an extension, returns the filename that page will be