Output to buffer if provided (which is the case in my ruby template