Escaping ASP.NET Tags

If you're building ASP.NET code with CodeSmith, you'll run into the problem that the <% tags that you want to output to your ASP.NET code are interpreted by CodeSmith as CodeSmith tags instead. The solution is to escape the starting tags, replacing <% with <%%. This will be replaced with <% in the output, and not seen by CodeSmith as an opening script tag.