diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-12-11 15:01:26 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-12-11 15:01:26 -0500 |
commit | b67632cdcdd333cf0a88d03c0f7e6e62921f32c3 (patch) | |
tree | caa351c9a90288cbc3cef536fda40b6f4e7a5922 /doc/plugins | |
parent | 2cd7eecf896261834bcd66d8ec3a9fd3bb7236d8 (diff) |
inline: Support feedfile option to change the filename of the feed generated.
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/write.mdwn | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index abcabbdc3..b6fa96f91 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -696,11 +696,15 @@ 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($$)` +#### `targetpage($$;$)` Passed a page and an extension, returns the filename that page will be rendered to. +Optionally, a third parameter can be passed, to specify the preferred +filename of the page. For example, `targetpage("foo", "rss", "feed")` +will yield something like `foo/feed.rss`. + ## Miscellaneous ### Internal use pages |