Prajna


HttpTemplateBuilder

Helper class to build HTML page based on template for WCF services.

Static members

Static memberDescription
GenerateHttpPage(...)
Signature: (ctx:WebOperationContext * pageTemplate:byte [] * funcStore:Dictionary<char,(StringBuilder -> StringBuilder)>) -> Stream

Generate HTML page based on a page template, and converts tags via functional delegate installed.

ServeContent(...)
Signature: (ctx:WebOperationContext * content:byte [] * placeHolder:char * info:(StringBuilder -> StringBuilder)) -> Stream

Serve HTML dynamic content through a template Please note that the content will not through HttpUtility.HtmlEncode.

ServeTable(...)
Signature: (ctx:WebOperationContext * content:byte [] * captionPlaceHolder:char * captionFunc:(StringBuilder -> StringBuilder) * tablePlaceHolder:char * tableSeqFunc:seq<seq<(StringBuilder -> StringBuilder)>>) -> Stream

Form a HTML table, where content is the template. We will replace caption and tableinfo. Please note that both caption and tableinfo has not passed through HttpUtility.HtmlEncode.

Fork me on GitHub