To get variable substitution, use double quotes instead of braces. Standard Tcl rule, though maybe surprising to you in this situation. (I recommend putting the << outside as its own argument as I think it is clearer that way.)
You can also use the subst command. Sometimes that is clearer; it's largely equivalent (except for some very fine niceties that don't matter too much unless you're doing large templated documents).
To get variable substitution, use double quotes instead of braces. Standard Tcl rule, though maybe surprising to you in this situation. (I recommend putting the
<<
outside as its own argument as I think it is clearer that way.)You can also use the
subst
command. Sometimes that is clearer; it's largely equivalent (except for some very fine niceties that don't matter too much unless you're doing large templated documents).