Function recursiveLiquidTemplateCopy

  • Given a directory, it traverses the files and directories recursively and replaces variables in directory and file names, and files' content using the Liquid template engine. Files indicate that they are liquid template by using the .liquid extension.

    Parameters

    • from: string

      Directory that contains the template.

    • to: string

      Output directory.

    • data: object

      Data to feed the template engine.

    Returns Promise<void>