summaryrefslogtreecommitdiff
path: root/doc/todo/Extensible_inlining.mdwn
blob: 994ed0759335063ead373243f156a85b7803e740 (plain)

Here's an idea with [[patch]] for extending inline in two directions:

  1. Permit the content-fetching function to return undef to skip a page. The limiting of @list to a set size is performed after that filtering.
  2. Permit other directive plugins to pass a function to generate content via an inliner_ parameter. The current patch doesn't try to remove that key from the parameters, so hilarity might ensue if someone is too clever. I suppose I should fix that... My intent is that other, custom directives can add inliner_.

The diff looks large because the first requires switching some loops.

I'm using this along with a custom BibTeX formatter (one item per file) to generate larger pages and tiny listings. I still need to hammer the templates for that, but I think that's possible without further patches.

(Setting up a git branch for a single plugin is a pain, but I can if necessary. I also could separate this into some sequence rather than all at once, but I won't have time for a week or two.)

-- [[JasonRiedy]]