added render tag, added support for ternary expressions