Add ability to create custom code example templates

- Document using code example templates
- Add template files for code example templates
Separate code example renderers into separate files.