the template parser now has function support