Hi Stuart,

When using  the asciidoc API is there an approved method of injecting
function names from my app  into the environment so the {eval:}
attribute in the documents will see them?

The undocumented method looks like I could inject them into
AsciidocAPI.asciidoc.__dict__ but I havn't tried yet.

A nicer method might be to add a method to AsciidocAPI to set a
dictionary that will be added to the locals() dictionary used by eval.

The API can then do the dirty work of injecting it some way or the
asciidoc execute function can be extended to take an extra argument,
or any other implementation technique.

My use-case is that my application gathers (potentially a *lot*) of
information from various sources, the documents then include parts in
various places in the document by evaluating the appropriate access
functions from my app.

Of course the evals would be wrapped in user friendly macros :-)

Any thoughts.

Cheers
Lex

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to