summaryrefslogtreecommitdiff
path: root/doc/ikiwiki
diff options
context:
space:
mode:
authorhttp://lovesgoodfood.com/jason/ <Jason_Riedy@web>2011-03-07 01:47:33 +0000
committerJoey Hess <joey@kitenet.net>2011-03-07 01:47:33 +0000
commita47d8b343b1b8f8c488c3850ac065999e700648c (patch)
tree2b9f3fb6c3ad250de311897902792ba29e9bf7cf /doc/ikiwiki
parent5e08848189b96ac772a6e581eb51bde9c7a9bae6 (diff)
Idea for extending inline.
Diffstat (limited to 'doc/ikiwiki')
-rw-r--r--doc/ikiwiki/directive/inline/discussion.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ikiwiki/directive/inline/discussion.mdwn b/doc/ikiwiki/directive/inline/discussion.mdwn
index 6a186cd93..8f74b100d 100644
--- a/doc/ikiwiki/directive/inline/discussion.mdwn
+++ b/doc/ikiwiki/directive/inline/discussion.mdwn
@@ -132,6 +132,14 @@ Else can you please suggest a smarter way of getting certain data out from pages
--[[hendry]]
+## A different idea: smuggling hook routines in through %params.
+
+The part that fetches the inlined content is quite compact. It's just the if ($needcontent) {} chunk. Would a patch that accepts a perl sub smuggled through something like $params{inliner_} be accepted? If that param exists, call it instead of the current content of that chunk. Pass $page, %params, and $template. Receive $content, possibly seeing $template modified. The custom directives can add inliner_ to %params and call IkiWiki::preprocess_inline. I suppose IkiWiki::Plugin::inline could be modified to strip any *_ out of the directive's arguments to prevent any custom behavior from leaking into the inline directive.
+
+I'm about to try this for a CV/resume type of thing. I want only one element with a specific id out of the generated content (with a little post-processing). I don't need performance for my case.
+
+--[[JasonRiedy]]
+
---
## Interaction of `show` and `feedshow`