Sharing Your Own Template
A template is a folder, so sharing it means giving someone a way to get that folder. This page shows how to make one that installs cleanly from a link. Every example in these docs is built that way, and each has a link you can look at.
- Give it an
idand aversionincodebaker.config.json5. - Zip the template folder's contents, or push the folder to a Git repository.
- Leave out the
.historyfolder. It sits next to your template files and holds your own run history and the values you typed. The plugin's own packaging of its sample templates skips it, but a plain zip or a Git commit does not, so exclude it when you zip, and add.historyto your.gitignorebefore publishing. - Share the
.ziplink, or the GitHub link of the folder or tag.
What a good template looks like
- An
idin the config. The installer names the folder after it. Without one it falls back to thename, then to the file name of the archive, and tells the user it had to guess. - The files at the root of the zip (a single wrapping folder, as GitHub makes, is fine too), with
codebaker.config.json5in the shallowest folder. See About the archive. - A link to a tag (
.../tree/v1.2.0) when users should get an exact, unchanging version, and aversionin the config so the user sees what they have. - Only public files. A link that needs a sign-in cannot be installed.
Look at the Download the template (.zip) link above any example in these docs, for instance on Your First Template: that zip is exactly this, and Install in IDE next to it installs it.
Next
- Installing Templates: what the user does with your link.
- Security: what an installed template can and cannot do.