dan marsden wrote: > With the old pre-templates quickbook, we had a feature for deducing > the correct heading level with: [heading Stuff] equivalent to [hN > Stuff] where N is the depth of nested [section]s. > > So my question is, with the new scheme using templates, would we be > able access depth (or even manipulate other arbitrary variables) so > that something such as the heading directive could be implemented > using the template mechanism?
Short answer: no. > Or is this already possible with the template mechanism in some other > way? That's a perfect job for Python! :) I guess we should provide a boost python wrapper support for accessing the parser state info. This is Dave's wish list and I intend to pursue it along these lines. Python will have access to the "collectors", the (soon to be) "code stacks", filenames, symbol tables, etc. Then, in Quickbook, we can pass info to and from Python. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net _______________________________________________ Boost-docs mailing list [email protected] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
