Метод | Описание | |
---|---|---|
CreateJSGenerator ( IRailsEngineContext context ) : object |
Implementors should return a generator instance if the view engine supports JS generation.
|
|
GenerateJS ( IRailsEngineContext context, Controller controller, string templateName ) : void |
Processes the js generation view template - using the templateName to obtain the correct template, and using the context to output the result.
|
|
GenerateJS ( |
Processes the js generation view template - using the templateName to obtain the correct template, and using the specified TextWriter to output the result.
|
|
HasTemplate ( string templateName ) : bool |
Evaluates whether the specified template exists.
|
|
MockViewEngine ( string viewFileExtension, string jsGeneratorFileExtension, bool supportsJSGeneration, bool xHtmlRendering ) : System |
Initializes a new instance of the MockViewEngine class.
|
|
Process ( IRailsEngineContext context, Controller controller, string templateName ) : void |
Processes the view - using the templateName to obtain the correct template, and using the context to output the result.
|
|
Process ( |
Processes the view - using the templateName to obtain the correct template and writes the results to the TextWriter. No layout is applied!
|
|
ProcessContents ( IRailsEngineContext context, Controller controller, string contents ) : void |
Wraps the specified content in the layout using the context to output the result.
|
|
ProcessPartial ( |
Should process the specified partial. The partial name must contains the path relative to the views folder.
|
public CreateJSGenerator ( IRailsEngineContext context ) : object | ||
context | IRailsEngineContext | The request context. |
Результат | object |
public GenerateJS ( IRailsEngineContext context, Controller controller, string templateName ) : void | ||
context | IRailsEngineContext | The request context. |
controller | Controller | The controller. |
templateName | string | Name of the template. |
Результат | void |
public GenerateJS ( |
||
output | The output. | |
context | IRailsEngineContext | The request context. |
controller | Controller | The controller. |
templateName | string | Name of the template. |
Результат | void |
public HasTemplate ( string templateName ) : bool | ||
templateName | string | |
Результат | bool |
public MockViewEngine ( string viewFileExtension, string jsGeneratorFileExtension, bool supportsJSGeneration, bool xHtmlRendering ) : System | ||
viewFileExtension | string | The view file extension. |
jsGeneratorFileExtension | string | The js generator file extension. |
supportsJSGeneration | bool | if set to |
xHtmlRendering | bool | if set to |
Результат | System |
public Process ( IRailsEngineContext context, Controller controller, string templateName ) : void | ||
context | IRailsEngineContext | |
controller | Controller | |
templateName | string | |
Результат | void |
public Process ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
templateName | string | |
Результат | void |
public ProcessContents ( IRailsEngineContext context, Controller controller, string contents ) : void | ||
context | IRailsEngineContext | The request context. |
controller | Controller | The controller. |
contents | string | Content to output |
Результат | void |
public ProcessPartial ( |
||
output | The output. | |
context | IRailsEngineContext | The request context. |
controller | Controller | The controller. |
partialName | string | The partial name. |
Результат | void |