mirror of
https://github.com/vale981/metalsmith-layouts
synced 2025-03-04 17:21:37 -05:00
No description
lib | ||
test | ||
.gitignore | ||
History.md | ||
Makefile | ||
package.json | ||
Readme.md |
metalsmith-layouts
A fork of metalsmith-templates. The original metalsmith-templates
uses the inPlace
flag to switch between either in-place templating or embedding a file within a template, this fork just embeds source files in templates. It can be used in conjunction with ismay/metalsmith-templates, which just supports in-place templating.
This originated in https://github.com/segmentio/metalsmith-templates/issues/35. Splitting up metalsmith-templates
was suggested by Ian Storm Taylor as a way to simplify both use-cases. It allows you to apply templates (or layouts) to your files and/or render the templating syntax in your source files.
Changes
- The
inPlace
option has been removed - Use
layout
instead oftemplate
in the front-matter to specify a layout - The default folder for layouts is
layouts
instead oftemplates
For further documentation see the original metalsmith-templates, but keep these differences in mind.
License
MIT