Re: [Rest2web-develop] What's available when using <* .... *> for inserting values?
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2007-04-01 23:22:16
|
Chris G wrote: > When using the <* .... *> syntax to insert something into a rst page > what variables are available? > > I tried 'title' and was told that wasn't defined and I suppose that's > not unreasonable. Then I tried 'pagename' and that was undefined too > which doesn't seem right to me, surely the filename should be known. > Looking at the code (call to 'render_well' in line 934 of restprocessor.py), only the uservalues are available at this point. What is your usecase for knowing the filename at this point ? (I only envisaged uservalues being used here - but it *could* be used for general templating.) Anyway - I note your feature request to add more values here - a strong use case might speed it up. :-) (By the way, this is a *slightly* obscure feature of rest2web - it is good to see it getting used. :-) Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |