Closed ghost closed 9 years ago
I stripped down the blog example that wintersmith creates with the command wintersmith new <project-name>
and it seems like nothing works at all when you remove plugins/paginator.coffee.
I basically just want wintersmith to stitch together my nunjucks files for me. Do I need to write a plugin to do that or can it just do this out of the box?
Alternatively, where can I read about how to setup the most basic wintersmith site which is not a blog?
So, after hours of hacking I think I figured out that a plugin like paginator.coffee is basically required if you want wintersmith to render any type of template files.
I wish there were some way to make this obvious.
That plugin is not required, that's the point. See wintersmith new --template basic You need a entry point for the template to render, a markdown file for example. If you want to generate files without an entry point you need to register a template plugin.
I am basically trying to use wintersmith-nunjucks and I observed that the
fromFile
class method gets called (and succeeds) but therender
instance method never gets called.Can someone please advise?
Here is the very simple plugin code and my configuration file below that. My assets and contents directories are empty and I have one file in templates called
index.html
which is a very basic nunjucks template.(wintersmith-nunjucka is my own fork of wintersmith-nunjucks with some very minor changes.)