aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2008-05-10 13:18:26 -0400
committerJoey Hess <joey@kitenet.net>2008-05-10 13:18:26 -0400
commit8dc18fc9d401faca9b066d25d1a893528c9cacaa (patch)
tree519321838d6bd58ed4c9510c7eeda8954b455b46 /doc/todo
parentae980bc47108e80707b614e9ff94d1e8a836a309 (diff)
downloadikiwiki-8dc18fc9d401faca9b066d25d1a893528c9cacaa.tar
ikiwiki-8dc18fc9d401faca9b066d25d1a893528c9cacaa.tar.gz
web commit by http://madduck.net/
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/more_customisable_titlepage_function.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/todo/more_customisable_titlepage_function.mdwn b/doc/todo/more_customisable_titlepage_function.mdwn
new file mode 100644
index 000000000..46f7f6a2a
--- /dev/null
+++ b/doc/todo/more_customisable_titlepage_function.mdwn
@@ -0,0 +1,11 @@
+I understand the `IkiWiki::titlepage` function is used to generate filenames from titles. It would be nice if there were an easier way to override what it does. I suppose I could write an *external* plugin and call `inject`, but maybe this could instead be done via the configuration file?
+
+I imagine two things: a lookup hash and a template.
+
+Since `IkiWiki::titlepage` basically translates characters, it would be cool to be able to define a lookup hash in the configuration, which would be consulted before falling back to the generic `__xx__` `ord()` representation of a letter. For instance, in German, I might prefer to have 'ä' become 'ae' instead of something illegible.
+
+Second, maybe a template could be honoured. The template could have a slot `%s` where the calculated title goes, and it could contain `strftime` symbols as well as variables, which get interpolated on use.
+
+-- [[madduck]]
+
+[[wishlist]]