Add templateFunctions example