Ext.XTemplates can be configured to contain functions and properties that are enclosed within the scope of the template itself. These functions can be used to encapsulate presentation logic, formatting, and other simple template data processing.
We are going to demonstrate how these functions can be included in an XTemplate's definition and how to access them within our template's code.
We will do this by building upon the example that we created in the previous recipe. Our goal is to highlight each of the rows that are deemed by our manager as high priority, in our situation this means any bug with a
severity rating of