You can set this up with Creative Exchange Live. When you export, you will see that any existing scriban template items will be exported to a root folder in your zip file. The default is -/scriban
If you don't want to do a full export, say for example if you are using the SXA CLI to create the theme, just create a folder at the same level as your theme folder, again the default is -/scriban
The location of this is defined in your themes gulp/config.js
file:
scriban: {
path: (function () {
if (!global.rootPath) {
return;
}
return '../-/scriban/**/*.scriban';
})(),
metadataFilePath: (function () {
if (!global.rootPath) {
return;
}
return '../-/scriban/metadata.json';
})()
},
The export will create a file in that folder called metadata.json
, this file contains the ID of the site where your scriban templates will be uploaded too.
{"siteId":"{B7AE6725-A0EF-4451-9D04-B62B614F3B0F}","database":"master"}
Once you have that setup, you can start creating your scriban files.
The file system works very similar to how Unicorn/Rainbow organizes its files. So you will need folders to match the item tree in Sitecore.