Skip to content

Latest commit

 

History

History
 
 

mustache

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Mustache Template Component

The mustache component applies the Mustache template engine to a file tree, creating rendered versions of each .mustache file, and copying all other files unchanged. A source file name myFile.xyz.mustache will result in a corresponding file myFile.xyz in the rendered result. The rendered files are located in a temporary directory at the location specified by the renderedFilePath output property.

For use of the Mustache template language, see the manual.

Input

myRenderedFiles:
  type: mustache
  inputs:
    sourcePath: /absolute/path/to/my/content
    values:
      aVariableUsedInMustache: Value to insert.

Output

myOtherComponent:
  type: example
  inputs:
    fileLocation: ${myRenderedFiles.renderedFilePath}/exampleFile.xyz