Make NO_FETCHER_FOUND available to external parties.

Closes #54.
This commit is contained in:
Michael Bayne
2014-05-02 11:30:31 -07:00
parent 20abde5b1a
commit 2f267b7199
@@ -69,6 +69,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.
@@ -321,10 +325,6 @@ 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. */
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();