Property | Type | Description | |
---|---|---|---|
velocity |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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 | |
return | void |
protected BeforeMerge ( |
||
velocityEngine | ||
template | ||
context | IContext | |
return | void |
public CreateJSGenerator ( IRailsEngineContext context ) : object | ||
context | IRailsEngineContext | |
return | object |
public GenerateJS ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
templateName | string | |
return | void |
public HasTemplate ( String templateName ) : bool | ||
templateName | String | |
return | bool |
protected InitializeVelocityProperties ( |
||
props | The |
|
return | void |
public Process ( IRailsEngineContext context, Controller controller, String viewName ) : void | ||
context | IRailsEngineContext | The context. |
controller | Controller | The controller. |
viewName | String | Name of the view. |
return | void |
public Process ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
viewName | String | |
return | void |
public ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void | ||
context | IRailsEngineContext | |
controller | Controller | |
contents | String | |
return | void |
public ProcessPartial ( |
||
output | ||
context | IRailsEngineContext | |
controller | Controller | |
partialName | string | |
return | void |
protected RenderLayout ( string layoutName, string contents, IContext ctx, IRailsEngineContext context, |
||
layoutName | string | |
contents | string | |
ctx | IContext | |
context | IRailsEngineContext | |
output | ||
return | void |
protected ResolveJSTemplateName ( string templateName ) : string | ||
templateName | string | |
return | string |
protected ResolveLayoutTemplateName ( string templateName ) : string | ||
templateName | string | |
return | string |
protected ResolveTemplateName ( string templateName ) : string | ||
templateName | string | |
return | string |
public Service ( IServiceProvider provider ) : void | ||
provider | IServiceProvider | |
return | void |