The factory parameters determine, which parser to use, which tree builder, if and how the templates should be filtered and so on. Some of the parameters depend on others. The list of parameters represents a comprehensive mix of interfaces which are expected in order to combine all the components properly.
Before explaining those interfaces, let’s see what actually happens with the stuff passed in. When loading a template using a factory’s method (e.g. → from_file) the following actions are taken:
If memoization is enabled, the whole chain of actions is prepended by a check if the key is already stored in which case only the template object is returned. If the key is not found in the memoization storage container, all actions are taken and the template object returned in the last step is stored for the next call.
WRITEME.