Changes between Version 17 and Version 18 of Doc/panc/dml/functions


Ignore:
Timestamp:
Jun 14, 2007, 11:00:56 AM (17 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Charles Loomis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/panc/dml/functions

    v17 v18  
    196196
    197197This is a synonym for the {{{nlist}}} function.
     198
     199=== if_exists( template_name:string ) : string | undef ===
     200
     201This function checks if the template named {{{template}}} exists on the current load path.
     202If it does, the function returns the template name; if not, it returns {{{undef}}}.
     203
     204This can be used to conditionally include a template only if it exists:
     205{{{
     206include {if_exists('my/conditional/template')};
     207}}}
     208This function should be used with caution as this brings in dependencies based on the state
     209of the file system and may cause dependency checking to be inaccurate.
    198210
    199211=== index ( sub:string, arg:string, [ start:long ] ) : long ===