Put types for templating in another module.
First version of the template parser.