returns new compile function based on given template
Function? compile(String template) { if (_fn != null) { return _fn!(template); } return null; }