Kirby\Cli\Command\Make\Blueprint::templates PHP Method

templates() protected method

protected templates ( )
    protected function templates()
    {
        $templates = ['all'];
        foreach (dir::read($this->dir() . '/site/blueprints') as $file) {
            if (!in_array(f::extension($file), ['php', 'yml', 'yaml'])) {
                continue;
            }
            $name = f::name($file);
            if (!in_array($name, ['error', 'site', 'home'])) {
                $templates[] = $name;
            }
        }
        return $templates;
    }