Expose NO_FETCHER_FOUND as custom fetchers may wish to return it.

This commit is contained in:
Michael Bayne
2013-04-05 11:01:37 -07:00
parent 4b1af351ae
commit 9d77d492b0
@@ -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.
* @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 THIS_NAME = "this".intern();
protected static final String FIRST_NAME = "-first".intern();