Handlebars

You can access a property that is external to a handlebars for loop by using .. syntax. When your code moves into a for loop, properties are implicitly taken from the object that is currently available from iteration, by using .. syntax you can specify that you want an external property.


  This student is  and they are in class 

In the example above an object holds a list of students and a class property with the class they are in. This class property needs to accessible for templating within the students loop. By using the .. syntax with specify that we want a property from the object a level “up”, that holds the students object information.