initial version of templating for docs