Posted on 03/09/2007 22:44:33
Dim myTemplate As New Templatev2.Template("SomeTemplateFolder/SomeTemplate.html")
myTemplate.SetTag("Sometag", "SomeValue")
Dim loopTemplate As Templatev2.Template = myTemplate.GetLoop("NameOfLoop")
For i As Integer = 0 To 5
loopTemplate.SetTag("Counter", i)
loopTemplate.CommitLoop()
Next
Dim outPut As String = myTemplate.Output
The template then looks like this: