Sitefinity template parser: How to use standard ASP.NET parser

April 07, 2009 Digital Experience

[This post is part of the developer's manual preview published on this blog. You can find temporary TOC here.]
 

When creating your templates for Sitefinity (control templates that is) you have a choice between standard ASP.NET template parser and Sitefinity template parser. Here are the rules that explain which template parser you will use:
  • Embedded templates always use Sitefinity template parser
  • External templates will use standard ASP.NET parser if they end with .ascx extension
  • External templates will use Sitefinity ASP.NET parser if they end with any extension other than .ascx - in Sitefinity team we have the convention to end these files with .sft extension
We suggest you use Sitefinity template parser for the new templates, because you will have the guarantee that these templates could be embedded effortlessly in the future. For the already existing templates, you can use standard ASP.NET template parser.

The Progress Team