Buffer template rendering.

This allows for better error handling and a place to deal with HEAD
requests.