2007-01-18 19:58:48 +01:00
|
|
|
I'd like to see some way to include certain files from the underlay only when the wiki has certain plugins enabled. For example:
|
|
|
|
|
|
|
|
* Only include smileys.mdwn and the smileys subdirectory if you enable the [[plugins/smiley]] plugin.
|
2007-04-30 04:46:29 +02:00
|
|
|
* Exclude openid.mdwn if you disable the [[plugins/openid]] plugin.
|
2007-01-18 19:58:48 +01:00
|
|
|
* Include shortcuts.mdwn only if you enable the [[plugins/shortcut]] plugin.
|
|
|
|
* Include blog.mdwn only if you don't disable the [[plugins/inline]] plugin.
|
|
|
|
* Include favicon.ico only if you enable the [[plugins/favicon]] plugin.
|
|
|
|
* Include wikiicons/diff.png (and the wikiicons directory) only if you enable the CGI.
|
|
|
|
* Include a hypothetical restructuredtexthelp.rst or similar for other formats only with those formats enabled.
|
2007-01-18 20:56:40 +01:00
|
|
|
|
2007-01-28 01:53:00 +01:00
|
|
|
I can see two good ways to implement this. Ideally, with
|
|
|
|
[[conditional_text_based_on_ikiwiki_features]] available, ikiwiki could
|
|
|
|
parse a page like conditionalpages.mdwn, which could contain a set of
|
|
|
|
conditional-wrapped page names; that seems like the most elegant and
|
2008-07-27 04:55:39 +02:00
|
|
|
ikiwiki-like approach. Alternatively, ikiwiki.setup could contain a
|
2007-01-28 01:53:00 +01:00
|
|
|
Perl-generated exclude option by default; that would work, but it seems
|
|
|
|
hackish.
|
|
|
|
|
|
|
|
> Another way might be to have a third directory of source files where
|
|
|
|
> plugins could drop in pages, and only build the files from there if their
|
|
|
|
> plugins were enabled.
|
|
|
|
>
|
|
|
|
> Using the conditionals in a page to control what other pages get built
|
2007-08-28 03:59:01 +02:00
|
|
|
> feels complex to me.
|
|
|
|
>
|
|
|
|
> Instead, this has been implmented as the `add_underlay()` function.
|
|
|
|
> [[done]]
|
|
|
|
> --[[Joey]]
|
|
|
|
|