Add support for plain text templates