ikiwiki (3.20130711) unstable; urgency=low
[ikiwiki.git] / doc / bugs / nested_inlines_produce_no_output.mdwn
1 If an inlined page itself contains an inline directive, the nested directive will produce no output.  In [this example wiki](http://www.willthompson.co.uk/tmp/ikiwiki-nested-inline/), the following pages exist:
2
3  * _pets_: contains some content, and the directive `inline pages="pets/* and !pets/*/*"` to inline its immediate children.
4  * _pets/dogs_: some content, and `inline pages="pets/dogs/*"`.
5  * _pets/dogs/fifi_, _pets/dogs/rover_: content.
6  * _pets/cats_, _pets/cats/mumu_, _pets/cats/ceefer_: similar.
7
8 When rendered, _pets_ [contains](http://www.willthompson.co.uk/tmp/ikiwiki-nested-inline/output/pets/) the content from _pets/dogs_ and _pets/cats_, but not the pages inlined into them.  However, the subpages [correctly](http://www.willthompson.co.uk/tmp/ikiwiki-nested-inline/output/pets/dogs/) [include](http://www.willthompson.co.uk/tmp/ikiwiki-nested-inline/output/pets/cats/) their own children.
9
10 This used to work in at least ikiwiki 1.45.  I stepped through `preprocess_inline`, but couldn't see why this wasn't working.
11
12 > Broke due to overoptimisation, fixed now. [[done]] --[[Joey]]