MCPcopy Create free account
hub / github.com/apache/freemarker / importLib

Method importLib

src/main/java/freemarker/core/Environment.java:1526–1530  ·  view source on GitHub ↗

Emulates import directive, except that name must be tempate root relative. It's the same as importLib(getTemplateForImporting(name), namespace) . But, you may want to separately call these two methods, so you can determine the source of exceptions more preci

(String name, String namespace)

Source from the content-addressed store, hash-verified

1524 * @see #importLib(Template includedTemplate, String namespace)
1525 */
1526 public Namespace importLib(String name, String namespace)
1527 throws IOException, TemplateException
1528 {
1529 return importLib(getTemplateForImporting(name), namespace);
1530 }
1531
1532 /**
1533 * Gets a template for importing; used with

Callers 5

acceptMethod · 0.80
acceptMethod · 0.80
acceptMethod · 0.80

Calls 6

setVariableMethod · 0.95
includeMethod · 0.95
getMethod · 0.65
putMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected