Monday, January 10, 2011

Sitecore.NVelocity

Apparently I was working with Sitecore and its mail template. Sitecore suggest using nVelocity for template rendering. I notices that they have their own version of nVelocity called Sitecore.NVelocity. The base code is essentially the same and the code for rendering the template is slightly different as follows ( as in original Velocity)

In the constructor

Velocity.Init();


For rendering call 


Velocity.Evaluate(context, generated, "nVelocityLog", reader);

No comments:

Post a Comment