added a custom template tag in order to evaluate formulas in templates