tags:

views:

48

answers:

2

Is there any kind of template engine in VB? Something akin to Apache velocity or Freemarker?

My goal is to be able to dynamically generate sql statement criteria for an MS Access application based on form input, with something more powerful than string cats.

A: 

T4 templates for VB.NET.

Will
This seems to be used only for code generation for Visual studio. I want to generate arbitrary text.
gbegley
Can T4 templates generate arbitrary text or are they just for code generation plugins to Visual studio as the MSDN docs imply?
gbegley
If you're talking post compilation (during runtime) probably not.
Will
A: 

I've used StringTemplate on a project once. It has C# port which you should be able to use from VB as well.

DSO