public final class Templates extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasExpression(freemarker.template.Template template,
String expression)
Determines whether exists a variable specified by the given expression
in the specified template.
|
public static boolean hasExpression(freemarker.template.Template template,
String expression)
template - the specified templateexpression - the given expression, for example,
"${aVariable}", "<#list recentComments as comment>"true if it exists, returns false otherwiseCopyright © 2009–2019 B3log. All rights reserved.