2.1 Static projects with Nunjucks - JayBox325/JayPack GitHub Wiki

Once craft is set to false in ./project-config, JayPack will to populate your ./_src directory with a set of Nunjucks templates to get you started.

These are moved at this point, because they are not needed in a CraftCMS project.

Work on the project HTML in the ./_src/html directory, so HTML templates will then be generated and exported to the build directory for serving on your browser.

Nunjucks data

Nunjucks content can be populated from the ./_src/html/__data/data.json file. This gives you the opportunity to use loops to keep your code DRY.