Allow trimming of whitespace from templates.