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

Method Environment

src/main/java/freemarker/core/Environment.java:157–165  ·  view source on GitHub ↗
(Template template, final TemplateHashModel rootDataModel, Writer out)

Source from the content-addressed store, hash-verified

155 }
156
157 public Environment(Template template, final TemplateHashModel rootDataModel, Writer out)
158 {
159 super(template);
160 this.globalNamespace = new Namespace(null);
161 this.currentNamespace = mainNamespace = new Namespace(template);
162 this.out = out;
163 this.rootDataModel = rootDataModel;
164 importMacros(template);
165 }
166
167 /**
168 * Retrieves the currently processed template.

Callers

nothing calls this directly

Calls 1

importMacrosMethod · 0.95

Tested by

no test coverage detected