Package org.craftercms.engine.util.freemarker
package org.craftercms.engine.util.freemarker
-
ClassDescriptionExtension of Freemarker's
Configuration
that caches the result ofgetTemplate()
in Crafter's own cache, which handles key-based smart locking so that the same template is not compiled several times by concurrent threads.Just likeHttpRequestHashModel
, but besides returning request attributes, it also returns values for the following properties of the request: scheme serverName serverPort contextPath servletPath requestURI queryStringImplementation ofTemplateHashModelEx
to safely expose theSiteContext
instance in templates