C# 클래스 Controller.HtmlBuilder

Class used to generate the web front-end homepage. Uses a combination of files hosted externally from the Netduino, some templating fragments, and snippets for each active plugin
상속: IDisposable
파일 보기 프로젝트 열기: h07r0d/Netduino-Aquarium-Controller 1 사용 예제들

공개 메소드들

메소드 설명
AddPlugin ( string _scriptName, PluginType _type ) : void

Add required js and html for a specific plugin to the index generator

Dispose ( ) : void
GenerateIndex ( ) : void

Write out the index.html file to be served

HtmlBuilder ( ) : System
HtmlBuilder ( bool _local ) : System

Constructor, initializes temp files and necessary paths.

When the HtmlBuilder is initialized, check for any temp files and remove them. This ensures that the index.htm file that is built doesn't have any errors from the previous runs

비공개 메소드들

메소드 설명
WritePlugins ( FileStream &_index, PluginType _type ) : bool

Write out the html for all of the plugins from their respective fragments

메소드 상세

AddPlugin() 공개 메소드

Add required js and html for a specific plugin to the index generator
public AddPlugin ( string _scriptName, PluginType _type ) : void
_scriptName string string containing the name of the plugins javascript files
_type PluginType class of plugin. Different classes require different placement in the homepage
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GenerateIndex() 공개 메소드

Write out the index.html file to be served
public GenerateIndex ( ) : void
리턴 void

HtmlBuilder() 공개 메소드

public HtmlBuilder ( ) : System
리턴 System

HtmlBuilder() 공개 메소드

Constructor, initializes temp files and necessary paths.
When the HtmlBuilder is initialized, check for any temp files and remove them. This ensures that the index.htm file that is built doesn't have any errors from the previous runs
public HtmlBuilder ( bool _local ) : System
_local bool Use local resources or web sourced?
리턴 System