public final class GloopTemplateMethods extends Object
Constructor and Description |
---|
GloopTemplateMethods() |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
render(io.toro.gloop.engine.GloopExecutionContext context,
io.toro.gloop.template.GloopTemplateResolver resolver,
MartiniPackage martiniPackage,
io.toro.gloop.template.GloopTemplate template,
boolean closeContext) |
static String |
render(String namespace,
boolean fragment)
Return a rendered html from a gloop template using its
name with provided inputs . |
static String |
render(String namespace,
boolean fragment,
boolean closeContext,
Collection<?> inputs)
Return a rendered html from a gloop template using its
name with provided inputs . |
static String |
render(String namespace,
boolean fragment,
boolean closeContext,
Map inputs)
Return a rendered html from a gloop template using its
name with provided inputs . |
static String |
render(String namespace,
boolean fragment,
boolean closeContext,
Object... inputs)
Return a rendered html from a gloop template using its
name with provided inputs . |
public static String render(String namespace, @GloopParameter(defaultValue="false") boolean fragment) throws io.toro.gloop.exception.GloopException
name
with provided inputs
.namespace
- namespace of the gloop templatefragment
- if fragment is true, the Gloop template will be rendered as a fragment
without the tags.io.toro.gloop.exception.GloopException
public static String render(String namespace, @GloopParameter(defaultValue="false") boolean fragment, @GloopParameter(defaultValue="true") boolean closeContext, Object... inputs) throws io.toro.gloop.exception.GloopException
name
with provided inputs
.namespace
- namespace of the gloop templatefragment
- if fragment is true, the Gloop template will be rendered as a fragment
without the tags.inputs
- the inputs to be passed to the gloop template, following the order defined on the gloop
templateio.toro.gloop.exception.GloopException
public static String render(String namespace, @GloopParameter(defaultValue="false") boolean fragment, @GloopParameter(defaultValue="true") boolean closeContext, Map inputs) throws io.toro.gloop.exception.GloopException
name
with provided inputs
.namespace
- namespace of the gloop templatefragment
- if fragment is true, the Gloop template will be rendered as a fragment
without the tags.inputs
- the inputs to be passed to the gloop gloop template, following the order defined on the gloop
templateio.toro.gloop.exception.GloopException
public static String render(String namespace, @GloopParameter(defaultValue="false") boolean fragment, @GloopParameter(defaultValue="true") boolean closeContext, Collection<?> inputs) throws io.toro.gloop.exception.GloopException
name
with provided inputs
.namespace
- namespace of the gloop templatefragment
- if fragment is true, the Gloop template will be rendered as a fragment
without the tags.inputs
- the inputs to be passed to the gloop gloop template, following the order defined on the gloop
templateio.toro.gloop.exception.GloopException
static String render(io.toro.gloop.engine.GloopExecutionContext context, io.toro.gloop.template.GloopTemplateResolver resolver, MartiniPackage martiniPackage, io.toro.gloop.template.GloopTemplate template, boolean closeContext) throws io.toro.gloop.exception.GloopException
io.toro.gloop.exception.GloopException
Copyright © 2020. All rights reserved.