lucee.Componentcbt.Engine
Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This Engine CFC interacts with the current template processor: Pebble
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
controller
|
true
|
false
|
|
any
|
engine
The internal engine used for the markup builder, in our case this points to a Pebble Engine Builder.
|
true
|
false
|
|
any
|
javaLoader
|
true
|
false
|
|
any
|
moduleSettings
|
true
|
false
|
|
any
|
requestService
|
true
|
false
|
|
any
|
tmpDir
Temporary path for on-demand rendering, leverages `getTempDirectory()`.
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
clearOnDemandCache()
Clears the ondemand cache. |
any
|
discoverTemplate(any template, any event, [string module=''])
Discover a template from the ColdBox Eco-System. |
private struct
|
generateBindingContext(any event, [string module=''])
Generate binding context. |
string
|
getController()
|
string
|
getEngine()
|
string
|
getJavaLoader()
|
string
|
getModuleSettings()
|
string
|
getRequestService()
|
string
|
getTmpDir()
|
any
|
onDIComplete()
|
string
|
renderContent(string content, [struct context='[runtime expression]'])
Render out from a-la-carte content instead of from files. |
string
|
renderTemplate([string template=''], [struct context='[runtime expression]'], [string module=''])
Render out a template using the templating language. |
any
|
setController(any controller)
|
any
|
setEngine(any engine)
|
any
|
setJavaLoader(any javaLoader)
|
any
|
setModuleSettings(any moduleSettings)
|
any
|
setRequestService(any requestService)
|
any
|
setTmpDir(any tmpDir)
|
private any
|
toJava([any obj])
Convert CFML to java types. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- coldboxserializable
- trueThe internal engine used for the markup builder, in our case this points to a Pebble Engine Builder.
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- loader@cbjavaloaderserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:modulesettings:cbtserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:requestServiceserializable
- trueTemporary path for on-demand rendering, leverages `getTempDirectory()`
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Clears the ondemand cache.
Discover a template from the ColdBox Eco-System
template
- The template convention to lookupevent
- The request contextmodule
- If passed, look for the view in this module.Generate binding context
event
- The ColdBox Request context to bind withmodule
- Are we in direct module template mode?Render out from a-la-carte content instead of from files. Internally, we will use the RAM file resource to stream the intermediate content
content
- The templating content to convertcontext
- A structure of data to bind the rendering with, so you can access it within the `{{ }}` or `{{{ }}}` notations.Render out a template using the templating language
template
- The template to render. By convention we will look in the views convention of the current application or running module. This can also be an absolute path.context
- A structure of data to bind the rendering with, so you can access it within the `{{ }}` or `{{{ }}}` notations.module
- If passed, then we will bypass lookup for templates and go to the specified module to render the template from.controller
engine
javaLoader
moduleSettings
requestService
tmpDir
Convert CFML to java types Experimental, removing for now until further conventions can be done with CFC types.
obj
- Target objects for conversion