Describir: A Functional Implementation of the Formal Template Language