added support to display scope var in templates