summaryrefslogtreecommitdiff
path: root/doc/ikiwiki/directive/inline
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-03-07 21:56:04 -0400
committerJoey Hess <joey@kitenet.net>2011-03-07 21:56:04 -0400
commitd162bf767e1e57502c4a767fa5a6ec42a5857c59 (patch)
treebfaff726a76300013005292b37c62b534234ce81 /doc/ikiwiki/directive/inline
parent9ef5139918dbe3f4cf0b3310c76dd31090925406 (diff)
parentf486cf6b77e4718a33eaa2b16bd17cdb67c47044 (diff)
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Diffstat (limited to 'doc/ikiwiki/directive/inline')
-rw-r--r--doc/ikiwiki/directive/inline/discussion.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/ikiwiki/directive/inline/discussion.mdwn b/doc/ikiwiki/directive/inline/discussion.mdwn
index 6a186cd93..5489d5f16 100644
--- a/doc/ikiwiki/directive/inline/discussion.mdwn
+++ b/doc/ikiwiki/directive/inline/discussion.mdwn
@@ -132,6 +132,16 @@ 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.
+
+Update: Pretty much works. I need a way to skip sources, but inline shrinks the list of all pages *before* trying to form them. Next little bit...
+
+--[[JasonRiedy]]
+
---
## Interaction of `show` and `feedshow`