Changes between Version 1 and Version 2 of Doc/panc/advanced


Ignore:
Timestamp:
Mar 4, 2007, 5:55:04 PM (19 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Charles Loomis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/panc/advanced

    v1 v2  
    66The pan compiler uses a load path defined on the command line to autoload templates. The autoload
    77procedure stops with the first existing template and will load a template of a given name only once.
    8 One can use the LOADPATH variable to add additional relative paths to the search path. It must
    9 be a list of relative paths as strings. This functionality can be used for example (in conjunction with
     8One can use the LOADPATH variable to add additional relative paths to the search path during the evaluation of an object template.  This variable must
     9be a list of relative paths given as strings. This functionality can be used for example (in conjunction with
    1010namespaces) to switch between production and test versions of templates easily:
     11{{{
    1112object template test;
    1213variable LOADPATH = ’production’;
     
    1415include ’service_configuration’;
    1516...
     17}}}
    1618With a path given on the command line like {{{/pan}}}, the pan compiler will search in {{{/pan}}} and then
    1719{{{/pan/production}}} for the template named service configuration. Uncommenting the test
    1820line and commenting the production line will search {{{/pan/test}}} rather than {{{/pan/production}}}.
     21
    1922All combinations of the paths given on the command line and those given in the LOADPATH variable
    2023are searched until the needed template is found.  The first path from the command line is searched first,