public static function new_from_file(h\string $template_filename) { $document = \domdocument::loadFile($template_filename); return new static($document); }