Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The next step is to let CodeSmith Generator generate the parts of the output that it can calculate automatically. To do this, we'll insert C# code into our template, using special scripting tags with the same syntax as ASP.NET. CodeSmith Generator looks for sections of your template surrounded with <%= and %> tokens, and treats the contents of those tags as expressions to evaluate at runtime. The result of those expressions is then inserted in into the generated code in place of the scripting expression.

...