From 87967c2e4b3ed80e3e208e9bfb13a2c055f3f5ce Mon Sep 17 00:00:00 2001 From: Frederik Dudzik Date: Fri, 13 May 2016 18:50:01 +0200 Subject: [PATCH] state clearly what it means that the file is passed as a variable #89 --- Readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Readme.md b/Readme.md index 80fd69f..fccf30d 100644 --- a/Readme.md +++ b/Readme.md @@ -212,6 +212,14 @@ Exposes Consolidate.requires as a function. Any unrecognised options will be passed on to consolidate.js. You can use this, for example, to disable caching by passing `cache: false`. See the [consolidate.js documentation](https://github.com/tj/consolidate.js) for all options supported by consolidate. +## FAQ + +#### Not able to render page within layout + +Your page is passed to the layout as a variable and won't be interpreted as your engin's markup. +You want to convert the page before it is passed to the layout function. +[metalsmith-in-place](https://github.com/superwolff/metalsmith-in-place) is meant for that. + ## Origins This plugin is a fork of the now deprecated [metalsmith-templates](https://github.com/segmentio/metalsmith-templates). Splitting up `metalsmith-templates` into two plugins was suggested by Ian Storm Taylor. The results are: