File System Helpers

Table of Contents

fs

Visit the: code | unit tests

{read}

Read a file from the file system. This is useful in composing "include"-style helpers using sub-expressions.

Params

  • filepath String
  • returns String

Example

{{read "a/b/c.js"}}
{{someHelper (read "a/b/c.md")}}

{readdir}

Return an array of files from the given directory.

Params

  • directory String
  • returns Array

Table of Contents