I tried it. It does not work. I had to do this in the tcl file.
upvar 1 keywords set keywords "foo"
then set the property in the calling template.