From: Brian G. <br...@qu...> - 2003-07-16 19:46:06
|
>and what if, in a standalone environment, you want to use the same Context >to .write() a bunch of templates? The use of the reference count was to support things like #include, where in the course of expanding one template you want to expand a subtemplate. So in the case above, you'd have a few choices. The first would be do nothing, in which case the tool gets reinitalized and destroyed on each evaluation, which might be OK. The second would be to bracket the series of calls with beginEval/endEval. Again, the use of the begin/end are optional in the sense that they only affect the behavior of "stateful" tools. -- Brian Goetz Quiotix Corporation br...@qu... Tel: 650-843-1300 Fax: 650-324-8032 http://www.quiotix.com |