No description
Find a file
2014-11-17 22:19:05 +01:00
lib Layouts instead of templates, closes #2 2014-11-17 20:30:49 +01:00
test 0.5.2 2014-07-09 11:15:03 -07:00
.gitignore first commit 2014-02-04 21:47:35 -08:00
History.md 0.6.0 2014-10-03 10:27:39 -07:00
Makefile first commit 2014-02-04 21:47:35 -08:00
package.json 0.6.0 2014-10-03 10:27:39 -07:00
Readme.md Update readme, closes #1 2014-11-17 22:19:05 +01:00

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 of template in the front-matter to specify a layout
  • The default folder for layouts is layouts instead of templates

For further documentation see the original metalsmith-templates, but keep these differences in mind.

License

MIT