Свойство | Тип | Описание | |
---|---|---|---|
velocity |
Метод | Описание | |
---|---|---|
CreateJSGenerator ( IRailsEngineContext context ) : object | ||
GenerateJS ( |
||
HasTemplate ( String templateName ) : bool |
Evaluates whether the specified template exists.
|
|
Initialize ( ) : void | ||
NVelocityViewEngine ( ) : NVelocity |
Creates a new NVelocityViewEngine instance.
|
|
Process ( IRailsEngineContext context, Controller controller, String viewName ) : void |
Processes the specified context.
|
|
Process ( |
Processes the view - using the templateName to obtain the correct template and writes the results to the System.TextWriter. No layout is applied!
|
|
ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void | ||
ProcessPartial ( |
||
Service ( IServiceProvider provider ) : void |
Метод | Описание | |
---|---|---|
BeforeApplyingLayout ( string layout, string &contents, Controller controller, IContext ctx, IRailsEngineContext context ) : void | ||
BeforeMerge ( |
||
InitializeVelocityProperties ( |
Initializes basic velocity properties. The main purpose of this method is to allow this logic to be overrided.
|
|
RenderLayout ( string layoutName, string contents, IContext ctx, IRailsEngineContext context, |
||
ResolveJSTemplateName ( string templateName ) : string |
Resolves the template name into a velocity JS template file name.
|
|
ResolveLayoutTemplateName ( string templateName ) : string |
Resolves the layout template name into a velocity template file name.
|
|
ResolveTemplateName ( string templateName ) : string |
Resolves the template name into a velocity template file name.
|
Метод | Описание | |
---|---|---|
CreateContext ( IRailsEngineContext context, Controller controller ) : IContext | ||
LoadMacros ( |
||
ProcessLayout ( String contents, Controller controller, IContext ctx, IRailsEngineContext context ) : void | ||
SendErrorDetails ( |
protected BeforeApplyingLayout ( string layout, string &contents, Controller controller, IContext ctx, IRailsEngineContext context ) : void | ||
layout | string | |
contents | string | |
controller | Controller | |
ctx | IContext | |
context | IRailsEngineContext | |
Результат | void |
protected BeforeMerge ( |
||
velocityEngine | ||
template | ||
context | IContext | |
Результат | void |
public CreateJSGenerator ( IRailsEngineContext context ) : object | ||
context | IRailsEngineContext | |
Результат | object |
public GenerateJS ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
templateName | string | |
Результат | void |
public HasTemplate ( String templateName ) : bool | ||
templateName | String | |
Результат | bool |
protected InitializeVelocityProperties ( |
||
props | The |
|
Результат | void |
public NVelocityViewEngine ( ) : NVelocity | ||
Результат | NVelocity |
public Process ( IRailsEngineContext context, Controller controller, String viewName ) : void | ||
context | IRailsEngineContext | The context. |
controller | Controller | The controller. |
viewName | String | Name of the view. |
Результат | void |
public Process ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
viewName | String | |
Результат | void |
public ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void | ||
context | IRailsEngineContext | |
controller | Controller | |
contents | String | |
Результат | void |
public ProcessPartial ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
partialName | string | |
Результат | void |
protected RenderLayout ( string layoutName, string contents, IContext ctx, IRailsEngineContext context, |
||
layoutName | string | |
contents | string | |
ctx | IContext | |
context | IRailsEngineContext | |
output | ||
Результат | void |
protected ResolveJSTemplateName ( string templateName ) : string | ||
templateName | string | |
Результат | string |
protected ResolveLayoutTemplateName ( string templateName ) : string | ||
templateName | string | |
Результат | string |
protected ResolveTemplateName ( string templateName ) : string | ||
templateName | string | |
Результат | string |
public Service ( IServiceProvider provider ) : void | ||
provider | IServiceProvider | |
Результат | void |