Package freemarker.cache
Class PathRegexMatcher
java.lang.Object
freemarker.cache.TemplateSourceMatcher
freemarker.cache.PathRegexMatcher
Matches the whole template source name (also known as template source path) with the given regular expression.
Note that the template source name is relative to the template storage root defined by the
TemplateLoader
;
it's not the full path of a file on the file system.- Since:
- 2.3.24
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PathRegexMatcher
- Parameters:
regex
- Glob with the syntax defined byStringUtil.globToRegularExpression(String)
. Must not start with/
.
-
-
Method Details
-
matches
- Throws:
IOException
-