├── .gitignore ├── History.md ├── Makefile ├── Readme.md ├── lib └── index.js ├── package.json └── test ├── fixtures ├── basic │ ├── build │ │ └── index.html │ ├── expected │ │ └── index.html │ ├── src │ │ └── index.html │ └── templates │ │ └── layout.html ├── binary │ ├── build │ │ ├── avatar.png │ │ └── image.png │ ├── expected │ │ ├── avatar.png │ │ └── image.png │ └── src │ │ ├── avatar.png │ │ └── image.png ├── default │ ├── build │ │ ├── default.md │ │ └── other.md │ ├── expected │ │ ├── default.md │ │ └── other.md │ ├── src │ │ ├── default.md │ │ └── other.md │ └── templates │ │ ├── default.html │ │ └── other.html ├── directory │ ├── build │ │ └── index.html │ ├── expected │ │ └── index.html │ ├── layouts │ │ └── layout.html │ └── src │ │ └── index.html ├── in-place │ ├── build │ │ └── index.html │ ├── expected │ │ └── index.html │ └── src │ │ └── index.html ├── metadata │ ├── build │ │ ├── one.html │ │ └── two.html │ ├── expected │ │ ├── one.html │ │ └── two.html │ ├── src │ │ ├── one.html │ │ └── two.html │ └── templates │ │ └── layout.html ├── partials │ ├── build │ │ └── index.html │ ├── expected │ │ └── index.html │ ├── src │ │ └── index.html │ └── templates │ │ ├── layout.html │ │ └── partials │ │ └── nav.html └── pattern │ ├── build │ ├── index.html │ └── index.md │ ├── expected │ ├── index.html │ └── index.md │ ├── src │ ├── index.html │ └── index.md │ └── templates │ └── layout.html └── index.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/History.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/Makefile -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/Readme.md -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/lib/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/package.json -------------------------------------------------------------------------------- /test/fixtures/basic/build/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/basic/build/index.html -------------------------------------------------------------------------------- /test/fixtures/basic/expected/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/basic/expected/index.html -------------------------------------------------------------------------------- /test/fixtures/basic/src/index.html: -------------------------------------------------------------------------------- 1 | --- 2 | template: layout.html 3 | --- 4 | 5 | body -------------------------------------------------------------------------------- /test/fixtures/basic/templates/layout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/basic/templates/layout.html -------------------------------------------------------------------------------- /test/fixtures/binary/build/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/binary/build/avatar.png -------------------------------------------------------------------------------- /test/fixtures/binary/build/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/binary/build/image.png -------------------------------------------------------------------------------- /test/fixtures/binary/expected/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/binary/expected/avatar.png -------------------------------------------------------------------------------- /test/fixtures/binary/expected/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/binary/expected/image.png -------------------------------------------------------------------------------- /test/fixtures/binary/src/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/binary/src/avatar.png -------------------------------------------------------------------------------- /test/fixtures/binary/src/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/binary/src/image.png -------------------------------------------------------------------------------- /test/fixtures/default/build/default.md: -------------------------------------------------------------------------------- 1 | Title 2 | 3 | Body -------------------------------------------------------------------------------- /test/fixtures/default/build/other.md: -------------------------------------------------------------------------------- 1 | 2 | Body -------------------------------------------------------------------------------- /test/fixtures/default/expected/default.md: -------------------------------------------------------------------------------- 1 | Rendered 2 | 3 | Body -------------------------------------------------------------------------------- /test/fixtures/default/expected/other.md: -------------------------------------------------------------------------------- 1 | 2 | Body -------------------------------------------------------------------------------- /test/fixtures/default/src/default.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/default/src/default.md -------------------------------------------------------------------------------- /test/fixtures/default/src/other.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/default/src/other.md -------------------------------------------------------------------------------- /test/fixtures/default/templates/default.html: -------------------------------------------------------------------------------- 1 | {{title}} 2 | {{contents}} -------------------------------------------------------------------------------- /test/fixtures/default/templates/other.html: -------------------------------------------------------------------------------- 1 | {{contents}} -------------------------------------------------------------------------------- /test/fixtures/directory/build/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/directory/build/index.html -------------------------------------------------------------------------------- /test/fixtures/directory/expected/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/directory/expected/index.html -------------------------------------------------------------------------------- /test/fixtures/directory/layouts/layout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/directory/layouts/layout.html -------------------------------------------------------------------------------- /test/fixtures/directory/src/index.html: -------------------------------------------------------------------------------- 1 | --- 2 | template: layout.html 3 | --- 4 | 5 | body -------------------------------------------------------------------------------- /test/fixtures/in-place/build/index.html: -------------------------------------------------------------------------------- 1 | 2 | First Last -------------------------------------------------------------------------------- /test/fixtures/in-place/expected/index.html: -------------------------------------------------------------------------------- 1 | 2 | First Last -------------------------------------------------------------------------------- /test/fixtures/in-place/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/in-place/src/index.html -------------------------------------------------------------------------------- /test/fixtures/metadata/build/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/metadata/build/one.html -------------------------------------------------------------------------------- /test/fixtures/metadata/build/two.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/metadata/build/two.html -------------------------------------------------------------------------------- /test/fixtures/metadata/expected/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/metadata/expected/one.html -------------------------------------------------------------------------------- /test/fixtures/metadata/expected/two.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/metadata/expected/two.html -------------------------------------------------------------------------------- /test/fixtures/metadata/src/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/metadata/src/one.html -------------------------------------------------------------------------------- /test/fixtures/metadata/src/two.html: -------------------------------------------------------------------------------- 1 | --- 2 | template: layout.html 3 | --- 4 | 5 | two -------------------------------------------------------------------------------- /test/fixtures/metadata/templates/layout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/metadata/templates/layout.html -------------------------------------------------------------------------------- /test/fixtures/partials/build/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/partials/build/index.html -------------------------------------------------------------------------------- /test/fixtures/partials/expected/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/partials/expected/index.html -------------------------------------------------------------------------------- /test/fixtures/partials/src/index.html: -------------------------------------------------------------------------------- 1 | --- 2 | template: layout.html 3 | --- 4 |
Content
5 | -------------------------------------------------------------------------------- /test/fixtures/partials/templates/layout.html: -------------------------------------------------------------------------------- 1 | {{>nav}} 2 | {{{contents}}} 3 | -------------------------------------------------------------------------------- /test/fixtures/partials/templates/partials/nav.html: -------------------------------------------------------------------------------- 1 |Nav
2 | -------------------------------------------------------------------------------- /test/fixtures/pattern/build/index.html: -------------------------------------------------------------------------------- 1 | 2 | Not matched body -------------------------------------------------------------------------------- /test/fixtures/pattern/build/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/pattern/build/index.md -------------------------------------------------------------------------------- /test/fixtures/pattern/expected/index.html: -------------------------------------------------------------------------------- 1 | 2 | Not matched body -------------------------------------------------------------------------------- /test/fixtures/pattern/expected/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/pattern/expected/index.md -------------------------------------------------------------------------------- /test/fixtures/pattern/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/pattern/src/index.html -------------------------------------------------------------------------------- /test/fixtures/pattern/src/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/fixtures/pattern/src/index.md -------------------------------------------------------------------------------- /test/fixtures/pattern/templates/layout.html: -------------------------------------------------------------------------------- 1 | {{title}} 2 | {{contents}} -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/segment-boneyard/metalsmith-templates/HEAD/test/index.js --------------------------------------------------------------------------------