Version 145 of TemplaTcl: a Tcl template engine

Updated 2012-02-02 10:49:41 by GG

GG - 2012-02-02 10:49:41

Found this lib can not work well in a namespace

namespace eval hh {
  proc test {} {
    set temp_path [file dirname [info script]]
    TemplaTcl::create tt
    tt parseFile ${temp_path}/tt.tmpl
    tt setVar trverification sss
    tt setVar proc_name sss
    puts [tt render]

  }

}

hh::test

When I tried run, get a error: invalid command name "tt"

But If I move this proc out of namespace, everything is ok.