In this short chapter we are going to cover ES2015 template strings and their role in Aurelia. We will look specifically at string interpolation and requiring dependencies. Upon completing this chapter, you should have a solid understanding around templates.
Templates
In HTML, we have the <template> element. We use this element to define any markup that we want to be rendered by the Aurelia templating engine. Aurelia follows the standards around using templates and it makes it really easy to use. Let’s consider a simple example of a template: