templates.get returns a promise to return a compiled template function