Class HandlebarsTemplateEngine
- java.lang.Object
-
- io.vertx.reactivex.ext.web.common.template.TemplateEngine
-
- io.vertx.reactivex.ext.web.templ.handlebars.HandlebarsTemplateEngine
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class HandlebarsTemplateEngine extends TemplateEngine implements io.vertx.lang.rx.RxDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<HandlebarsTemplateEngine>__TYPE_ARGstatic StringDEFAULT_TEMPLATE_EXTENSIONDefault template extension
-
Constructor Summary
Constructors Constructor Description HandlebarsTemplateEngine(HandlebarsTemplateEngine delegate)HandlebarsTemplateEngine(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HandlebarsTemplateEnginecreate(Vertx vertx)Create a template engine using defaultsstatic HandlebarsTemplateEnginecreate(Vertx vertx, String extension)Create a template engine using defaultsbooleanequals(Object o)HandlebarsTemplateEnginegetDelegate()inthashCode()static HandlebarsTemplateEnginenewInstance(HandlebarsTemplateEngine arg)StringtoString()com.github.jknack.handlebars.Handlebarsunwrap()Returns the underlying engine, so further configurations or customizations may be applied ornullwhen the engine cannot unwrap it.-
Methods inherited from class io.vertx.reactivex.ext.web.common.template.TemplateEngine
clearCache, newInstance, render, render, rxRender, rxRender
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<HandlebarsTemplateEngine> __TYPE_ARG
-
DEFAULT_TEMPLATE_EXTENSION
public static final String DEFAULT_TEMPLATE_EXTENSION
Default template extension- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HandlebarsTemplateEngine
public HandlebarsTemplateEngine(HandlebarsTemplateEngine delegate)
-
HandlebarsTemplateEngine
public HandlebarsTemplateEngine(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classTemplateEngine
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTemplateEngine
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTemplateEngine
-
getDelegate
public HandlebarsTemplateEngine getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classTemplateEngine
-
create
public static HandlebarsTemplateEngine create(Vertx vertx)
Create a template engine using defaults- Parameters:
vertx-- Returns:
- the engine
-
create
public static HandlebarsTemplateEngine create(Vertx vertx, String extension)
Create a template engine using defaults- Parameters:
vertx-extension-- Returns:
- the engine
-
unwrap
public com.github.jknack.handlebars.Handlebars unwrap()
Description copied from class:TemplateEngineReturns the underlying engine, so further configurations or customizations may be applied ornullwhen the engine cannot unwrap it.- Overrides:
unwrapin classTemplateEngine- Returns:
- the engine instance.
-
newInstance
public static HandlebarsTemplateEngine newInstance(HandlebarsTemplateEngine arg)
-
-