Jade, it sounds like Nima wants to evaluate a chunk of text from the database as a template, or template chunk.
I haven't figured out a way of doing this yet (when it has @a@ or @a.b@ references).
The problem seems to be that evaluating a template produces a chunk of tcl code, it doesn't produce a string ready to return to the connection.