TextCSTemplateCompiler ClassNFX Class Library

[This is preliminary documentation and is subject to change.]

Compiles templates based of text files that use C# language syntax
Inheritance Hierarchy

OnlineSystem Object
  NFX DisposableObject
    NFX.Templatization TemplateCompiler
      NFX.Templatization TextCSTemplateCompiler

Namespace: NFX.Templatization
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public class TextCSTemplateCompiler : TemplateCompiler
Examples

 #<conf>
  <compiler base-class-name="NFX.Web.Templatization.SimpleWebTemplate" 
            namespace="TestWebApp.Templates" 
            abstract="true"
            summary="Test master page"
   />
#</conf>
#[class]

    public string Title { get {return "aaaaa"; } }


    protected abstract void renderHeader();
    protected abstract void renderBody(bool showDetails);
    protected abstract void renderFooter();


#[render]
<html>
 <head>
   <title>?[Title]</title>
 </head>
 <body>

  <h1>This is Header</h1>
   @[renderHeader();]

  <h1>This is Body</h1>
   @[renderBody(true);]
  <p>This is in master page</p>

  <h1>This is Footer</h1>
   @[renderFooter();]

 </body>
</html>
See Also