output directly to buffer if configured so it works in a ruby template easily