示例#1
0
 function findMacroFile($tagName)
 {
     $tagName = normalizeTagName($tagName);
     $filename = $tagName . $this->matisseSettings->macrosExt();
     foreach ($this->matisseSettings->getMacrosDirectories() as $dir) {
         $path = "{$dir}/{$filename}";
         if (file_exists($path)) {
             return $path;
         }
     }
     throw new FileIOException($filename);
 }
示例#2
0
 public function onParsingComplete()
 {
     $this->props->name = normalizeTagName($this->props->name);
 }