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

Method include

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

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

(String name, String encoding, boolean parse)

Source from the content-addressed store, hash-verified

1458 * @see #include(Template includedTemplate)
1459 */
1460 public void include(String name, String encoding, boolean parse)
1461 throws IOException, TemplateException
1462 {
1463 include(getTemplateForInclusion(name, encoding, parse));
1464 }
1465
1466 /**
1467 * Gets a template for inclusion; used with {@link #include(Template includedTemplate)}.

Callers 4

getWriterMethod · 0.95
importLibMethod · 0.95
acceptMethod · 0.45

Calls 6

getTemplateMethod · 0.95
importMacrosMethod · 0.95
visitMethod · 0.95
getRootTreeNodeMethod · 0.80
setParentMethod · 0.45

Tested by

no test coverage detected