The compile and format are two global methods of the package. Global methods have default configurations and cannot be modified.
Compile
The compile method compiles the template for reusability. Pre-compiled templates extremely fast according to the format method for repeating usages. It doesn't require a source object during the compilation process.
For advanced use cases, a new Formatter instance can be used. New instance can be useful, especially for modifying or extendingn the built-in pipe functions.