fix(template): passing values to templates' scope

fix for #3 not working properly when values change