Support for numeric expressions in template language