UNPKG

handlebars-helper-compose

Version:

{{compose}} handlebars helper. Inlines content from multiple files optionally using wildcard (globbing/minimatch) patterns, extracts YAML front matter to pass to context for each file. Accepts compare function as 3rd parameter for sorting inlined files. Good for blog posts, chapters, etc.

11 lines (10 loc) 246 B
--- title: Gamma post tags: - white - gray - black description: This is content from the description property in the YFM of <%= title %> --- This is the {{title}}, which should be inserted in the composed result. <p>{{description}}</p>