Add helpers to print messages in templates