This doc is part of the custom template documentation. You can see all the docs here!


All templates have a routes.json - this tells us what page to display for what URL.


Here for example, the "/" root goes to the index Nunjuck file. Every file you create that you want to be a page must have an entry in the routes.json

You can use query parameters without putting them in the routes.json, simply refer to queryparameters.<name> in your code.

Making Files and Directories

You can make files and directories (folders) using the + button on the template editor. Using this button will cause a file or folder to be created in the directory you're currently in.

If you create a folder, a file called new.txt will generate automatically in the new directory you've just created.
Pressing CTRL + SHIFT + F will format your code in the template editor.
Was this article helpful?
Thank you!