public class MustacheView extends Object
MustacheFactory instance.final String fileBase = this.getBaseDirectory().resolve("src/main/resources/templates").toString();
return new FallbackMustacheFactory("templates", new File(fileBase));
| Constructor and Description |
|---|
MustacheView(com.github.mustachejava.MustacheFactory mustacheFactory) |
| Modifier and Type | Method and Description |
|---|---|
me.geso.webscrew.response.WebResponse |
render(HTMLFilterProvider controller,
String template,
Object context)
Create a response object by mustache template engine.
|
public MustacheView(com.github.mustachejava.MustacheFactory mustacheFactory)
public me.geso.webscrew.response.WebResponse render(@NonNull
HTMLFilterProvider controller,
@NonNull
String template,
Object context)
template - context - Copyright © 2014. All rights reserved.