How to create a new template with a custom property in code?
There are pages of tutorials on creating templates via the web using crx/de ui or the template console and the "templates author" role.
However, we need to create page templates which are versioned and distributed as part of the code, and they need to contain custom properties.
Does anyone have a handy resource which describes how to new templates via code?