I'll upload Sam's version later today into the svn and on the website. It's too bad you lost time on this, Maxus.
I haven't looked into the code Sam's sent me, but perhaps both your code can be used. The v1 templates were for .NET 1.x, however llblgen pro now fully supports .NET 2.0, so I'm not sure which targetplatforms you guys have used / are using.
About TDL/lpt: TDL was created to have a templatelanguage which is more or less bugfree in the template: writing templates can be tedious if you have to debug a lot, so the main goal was that the statements would be straight forward and wouldn't lead to bugs which needed a debugger. This thus gives less flexibility.
Lpt templates give you maximum flexibility, but they're more lowlevel so you have to write more code sometimes to achieve the same thing.