Restructured template parser
Added simple caching to Template formatter
Documentation