added example of reading attributes and binding to template