org.ztemplates.render
Annotation Type ZRenderer


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface ZRenderer

controls the rendering of this object.

The following properties are exposed by default:

cssId: a id that can be used in css files, always

contextPath: the contextPath for creating urls, always

zscript: the css and javascript tags, only if you set zscript=true

Author:
gerdziegler

Required Element Summary
 Class<? extends ZIRenderer> value
          class of renderer to use for rendering this object
 
Optional Element Summary
 String encoding
          encoding to use for rendering this object
 String mimeType
          mime-type of rendered content, use this in conjunction with init property 'ztemplates.devMode.html.comments' to give hints about how to create comments
 boolean zscript
          it set to true a property called "zscript" will be exposed to the template containing the javascript and css html tags.
 Class<? extends ZICssPreprocessor> zscriptCssPreprocessor
           
 Class<? extends ZIJavaScriptGroupingStrategy> zscriptJavaScriptGroupingStrategy
           
 Class<? extends ZIJavaScriptPreprocessor> zscriptJavaScriptPreprocessor
           
 

Element Detail

value

public abstract Class<? extends ZIRenderer> value
class of renderer to use for rendering this object

Returns:

encoding

public abstract String encoding
encoding to use for rendering this object

Returns:
Default:
""

mimeType

public abstract String mimeType
mime-type of rendered content, use this in conjunction with init property 'ztemplates.devMode.html.comments' to give hints about how to create comments

Default:
"text/html"

zscript

public abstract boolean zscript
it set to true a property called "zscript" will be exposed to the template containing the javascript and css html tags.

Returns:
Default:
false

zscriptJavaScriptPreprocessor

public abstract Class<? extends ZIJavaScriptPreprocessor> zscriptJavaScriptPreprocessor
Returns:
Default:
org.ztemplates.web.script.javascript.ZDefaultJavaScriptPreprocessor.class

zscriptCssPreprocessor

public abstract Class<? extends ZICssPreprocessor> zscriptCssPreprocessor
Returns:
Default:
org.ztemplates.web.script.css.ZDefaultCssPreprocessor.class

zscriptJavaScriptGroupingStrategy

public abstract Class<? extends ZIJavaScriptGroupingStrategy> zscriptJavaScriptGroupingStrategy
Returns:
Default:
org.ztemplates.web.script.javascript.ZDefaultJavaScriptGroupingStrategy.class


Copyright © 2011. All Rights Reserved.