Creating parsing and executing templates