Class VelocityOnlyLayout
- java.lang.Object
-
- org.apache.turbine.modules.layouts.VelocityLayout
-
- org.apache.turbine.modules.layouts.VelocityOnlyLayout
-
- Direct Known Subclasses:
VelocityXslLayout
public class VelocityOnlyLayout extends VelocityLayout
This Layout module allows Velocity templates to be used as layouts. Since dynamic content is supposed to be primarily located in screens and navigations there should be relatively few reasons to subclass this Layout. To get the same functionality as with VelocityECSLayout, you can use two supplied VelocityMacros, TurbineHtmlHead and TurbineHtmlBodyAttributes in your templates. These are used to put HtmlPageAttributes into a page before rendering. Use these macros should be used in the Layout template like this: ... set things like style sheets, scripts here. <html> #TurbineHtmlHead() <body #TurbineHtmlBodyAttributes() > .... your body information </body> </html> As the layout template is rendered _after_ the screen template, you can of course, add information to the $page tool in your screen template. This will be added correctly to the <head>...</head> and <body> tags.- Version:
- $Id$
- Author:
- John D. McNally, Dave Bryson, Henning P. Schmiedehausen, Peter Courcoux
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.modules.layouts.VelocityLayout
log, prefix, velocityService
-
Fields inherited from interface org.apache.turbine.modules.Layout
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description VelocityOnlyLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
populateContext(PipelineData pipelineData, org.apache.velocity.context.Context context)
Populate Velocity context-
Methods inherited from class org.apache.turbine.modules.layouts.VelocityLayout
doBuild, render
-
-
-
-
Constructor Detail
-
VelocityOnlyLayout
public VelocityOnlyLayout()
-
-
Method Detail
-
populateContext
protected void populateContext(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
Description copied from class:VelocityLayout
Populate Velocity context- Specified by:
populateContext
in classVelocityLayout
- Parameters:
pipelineData
- PipelineDatacontext
- the Velocity context- Throws:
Exception
- if evaluation fails- See Also:
VelocityLayout.populateContext(org.apache.turbine.pipeline.PipelineData, org.apache.velocity.context.Context)
-
-