Add ability to create custom code example templates

- Document using code example templates
- Add template files for code example templates