1. The closest thing you're going to come to that is when you define a parameter in the template, which in effect becomes a local variable for the scope of that template.
2. Always the latter. And even better would be to generalize the template so it can be used by other pages, if you think it provides a common functionality.
2. Always the latter. And even better would be to generalize the template so it can be used by other pages, if you think it provides a common functionality.
3. Not sure, but what is the context?