docs/ts/community/submit-template.md
Templates help and inspire developers to build applications using Encore.
You are welcome to contribute your own templates!
Two types of templates that are especially useful:
Contribute a template by submitting a Pull Request to the Open Source Examples Repo: https://github.com/encoredev/examples
Follow these steps to submit a Starter:
encore app create APP-NAME --example=<TEMPLATE_FOLDER_NAME>README.md with instructions for how to use the template. We recommend following this format.Once your Pull Request has been approved, it may be featured on the Templates page on the Encore website.
Follow these steps to submit your Bits:
bits folder in the repo and place your template inside it. Use a short folder name as your template will soon be installable via the CLI.README.md with instructions for how to use the template.Once your Pull Request has been approved, it may be featured on the Templates page on the Encore website.
If you don't want to contribute code to the examples repo, but still want to be featured on the Templates page, please contact us at [email protected].
In most cases, you should avoid hardcoding an AppID in your template's source code. Instead, use the notation {{ENCORE_APP_ID}}.
When a developer creates an app using the template, {{ENCORE_APP_ID}} will be dymically replaced with their new and unique AppID, meaning they will not need to make any manual code adjustments.