src/Primer/Primer.php
public function getTemplates()
    {
        $templates = array();

        if ($handle = opendir(Primer::$PATTERN_PATH . '/templates')) {
            while (false !== ($entry = readdir($handle))) {
                if (substr($entry, 0, 1) !== '.') {
                    $templates[] = array(
                        'id' => $entry,
                        'title' => preg_replace('/[^A-Za-z0-9]/', ' ', $entry),
                    );
                }
            }

            closedir($handle);
        }

        return $templates;
    }
public function getTemplates()
    {
        $templates = array();

        if ($handle = opendir(Primer::$PATTERN_PATH . '/templates')) {
            while (false !== ($entry = readdir($handle))) {
                if (substr($entry, 0, 1) !== '.') {
                    $templates[] = array(
                        'id' => $entry,
                        'title' => preg_replace('/[^A-Za-z0-9]/', ' ', $entry),
                    );
                }
            }

            closedir($handle);
        }

        return $templates;
    }
public function getTemplates ( ) { $ templates = array ( ) ; if ( $ handle = opendir ( Primer :: $ PATTERN_PATH . '/templates' ) ) { while ( false !== ( $ entry = readdir ( $ handle ) ) ) { if ( substr ( $ entry , 0 , 1 ) !== '.' ) { $ templates [ ] = array ( 'id' => $ entry , 'title' => preg_replace ( '/[^A-Za-z0-9]/' , ' ' , $ entry ) , ) ; } } closedir ( $ handle ) ; } return $ templates ; }
Get the list of templates available. Returns an array of associative arrays

e.g.

array(
array(
'id' => 'home',
'title' => 'Home',
),
array(
'id' => 'about-us',
'title' => 'About Us'
)
);

@return array
Get the list of templates available . Returns an array of associative arrays