Using variables between templates


my question is simple, I have some variables in my template

// father_template.js

var one = 'one';
var two = 'two'


assuming I did a lot of changes in these variables and sometimes they can be objects, how can I easily use those variables in my other templates without making them global or without use sessions


study for example this?