Howto: Using Variables with Generic Templates
A variable is just that, a placeholder for a value which can change. A variable can be used just about anywhere in your template, including scripting, and allows you to inject values from outside of the template. This means you can now create a single generic template which automatically gets customized to the device once deployed.
We provide an example of creating a generic template playlist which uses the device tags to define the variable. The variable in this example is the device location which is then used to populate the weather gadget. In most cases you would just use Merge Tags to populate the weather, but this example is specifically about using variables which is a more generic approach.
For more information please check out KB article here: