public function __construct(SourceInterface $subtype) { list($this->type, $this->subtype) = explode(DIRECTORY_SEPARATOR, $subtype->getPath()); $this->partial = Navigation::escapePath($subtype->getNormalizedPath()); $this->path = Navigation::escapePath($subtype->getPath()); }
public function makePath(SourcePattern $pattern) { $path = Navigation::escapePath($pattern->getPath()); return PatternLab::makePath([$path, "{$path}.html"]); }