src/Blade_Strategy.php
public function get_template_name($slug)
    {
        $slug = \str_replace(
            [
                Config::get('theme.templates_directory') . '/',
                $this->blade->getFileExtension(),
            ],
            '',
            $slug
        );

        if (\strpos($slug, 'views/') !== 0) {
            $slug = 'views.' . $slug;
        }

        return $this->bladeify($slug);
    }
public function get_template_name($slug)
    {
        $slug = \str_replace(
            [
                Config::get('theme.templates_directory') . '/',
                $this->blade->getFileExtension(),
            ],
            '',
            $slug
        );

        if (\strpos($slug, 'views/') !== 0) {
            $slug = 'views.' . $slug;
        }

        return $this->bladeify($slug);
    }
public function get_template_name ( $ slug ) { $ slug = \ str_replace ( [ Config :: get ( 'theme.templates_directory' ) . '/' , $ this -> blade -> getFileExtension ( ) , ] , '' , $ slug ) ; if ( \ strpos ( $ slug , 'views/' ) !== 0 ) { $ slug = 'views.' . $ slug ; } return $ this -> bladeify ( $ slug ) ; }
Generate the template file name from the slug.

@since 1.0.0

@param  string $slug The slug for the generic template.
@return string
Generate the template file name from the slug .