Troubles with quickbook templates

Gennadiy Rozental <[email protected]> Fri, 14 Nov 2014 07:26:46 +0000 (UTC)
Newsgroups gmane.comp.lib.boost.documentation
Message-ID <[email protected]>
Hi,

I am trying to write a template which looks like this:

[template bt_example[name descr]

[import ../examples/[name].cpp]
[import ../examples/[name].output]
[table:id_[name] `[descr]` usage
  [
    [Code]
    [Output]
  ]
  [
    [[[name]]]
    [[[name]o]]
  ]
]
]

and invoke it like this:

[bt_example example34..BOOST_<level>]


with intention to generate lines like this:

[import ../examples/example34.cpp]
[import ../examples/example34.output]
[table:id_example34 `BOOST_<level>` usage
  [
    [Code]
    [Output]
  ]
  [
    [[example34]]
    [[example34o]]
  ]
]

Files being imported contain referenced tags in cells.

Unfortunately it seems to be failing on all possible places. import line 
fails with: "error: Unable to find file: ../examples/[name". If I 
hardcode the correct value inside import [descr] is not getting expanded 
and cell content is not expanded as well (i just see [example34] 
instead).

Please advise if this is something I am doing wrong and/or if this is 
something which can be fixed?

Gennadiy