Cernunnos Manual


<crn>

Description:

Reads, bootstrapps, and exececutes the Cernunnos script specified by LOCATION.

Reagents:

Name XPath Description Reagent Type Expected Type Required
CACHE @cache A shared Map to cache items in. The default is the value of the 'Attributes.CACHE' request attribute. PHRASE java.util.Map No
CACHE_MODEL @cache-model Specify either NONE, ONE, or ALL. PHRASE java.lang.String No
CONTEXT @context Optional context from which missing elements of the LOCATION will be inferred if it is relative. The default is the value of the 'Attributes.ORIGIN' request attribute. PHRASE java.lang.String No
LOCATION @location Location of a resource, which may be a filesystem path or a URL, and may be absolute or relative; if a relative value is provided, it will be resolved based on the value of CONTEXT. PHRASE java.lang.String No
TASK @task Cernunnos Task to invoke. Specify either LOCATION or TASK, but not both. PHRASE org.danann.cernunnos.Task No

Examples:

Invokes the 'go-to-south-park.crn' file once for each of the specified characters:

 
       
        <for-each items="${groovy(['Stan', 'Kyle', 'Cartman', 'Kenny'])}"> 
          <crn location="go-to-south-park.crn"/> 
        </for-each>