added render-template macro