[This is preliminary documentation and is subject to change.]
Compiles templates based of text files that use C# language syntax
System Object NFX DisposableObject NFX.Templatization TemplateCompiler NFX.Templatization TextCSTemplateCompilerNamespace: NFX.TemplatizationAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public class TextCSTemplateCompiler : TemplateCompiler
public class TextCSTemplateCompiler : TemplateCompiler
Public Class TextCSTemplateCompiler
Inherits TemplateCompiler
Public Class TextCSTemplateCompiler
Inherits TemplateCompiler
public ref class TextCSTemplateCompiler : public TemplateCompiler
public ref class TextCSTemplateCompiler : public TemplateCompiler
type TextCSTemplateCompiler =
class
inherit TemplateCompiler
end
type TextCSTemplateCompiler =
class
inherit TemplateCompiler
end
#<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>
#<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>