Switch renderFile to render in ContentDecorator