Template variables
We have already discussed a special type of template variable called resource-specific variables.
In this section, we will cover the creation of template variables that are specific to templates. We will be using the concepts covered here, throughout the book, for practical examples. This section provides you with a theoretical background that eases the understanding when using template variables in the corresponding chapters. To explain template variables, let us consider a blog site. Each blog entry can have some values attached to it, such as a tag and a rating. A tag is just a value assigned to a blog page that specifies which category this blog page belongs to, and a rating allows the visitors to rate the quality of the blog. All these values, which can be different for each resource, can be stored by using template variables. Hence a template variable is a property of a template that has individual values for each resource using the template. In this section, you...