-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Nunjucks actually work with metalsmith-layouts? #62
Comments
Ok! Here we go. I finally found a working solution. It just takes some external settings like so:
|
Cool, thanks for sharing. So does this work without issue? Because I've worked with nunjucks, but I remember the whole process being very fiddly. |
That's good to know, I'll add it to the documentation |
I know this is closed, but I wanted to add a quick piece of information for anyone who might be googling for help. If you need to provide separate template and partial directories, you can pass an array to the nunjucks.configure call, like so:
This is useful if you're running into confusing "unknown path" errors like I was, when the template very obviously existed.
|
@aeichepdx Thanks for adding this bit of info. |
I'm trying to get Nunjucks to work with Metalsmith but where do I put this code:
|
I've written a small article on how to make Nunjucks to work with Metalsmith. In it, I'm using |
Has anyone successfully got nunjucks working with metalsmith-layouts? I'm quite interested in using them after finding out Swig was no longer being maintained, but I am unable to specify the folder for includes or extends.
There was some discussion on #43 about this same issue, but it was closed without giving any examples.
The text was updated successfully, but these errors were encountered: