Refactored templates to render as blaze templates