Expose NO_FETCHER_FOUND as custom fetchers may wish to return it.
This commit is contained in:
@@ -51,6 +51,10 @@ public class Template
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** A sentinel object that can be returned by a {@link Mustache.Collector} to indicate that a
|
||||||
|
* variable does not exist in a particular context. */
|
||||||
|
public static final Object NO_FETCHER_FOUND = new Object();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes this template with the given context, returning the results as a string.
|
* Executes this template with the given context, returning the results as a string.
|
||||||
* @throws MustacheException if an error occurs while executing or writing the template.
|
* @throws MustacheException if an error occurs while executing or writing the template.
|
||||||
@@ -292,8 +296,6 @@ public class Template
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final Object NO_FETCHER_FOUND = new Object();
|
|
||||||
|
|
||||||
protected static final String DOT_NAME = ".".intern();
|
protected static final String DOT_NAME = ".".intern();
|
||||||
protected static final String THIS_NAME = "this".intern();
|
protected static final String THIS_NAME = "this".intern();
|
||||||
protected static final String FIRST_NAME = "-first".intern();
|
protected static final String FIRST_NAME = "-first".intern();
|
||||||
|
|||||||
Reference in New Issue
Block a user