Skip to content

Instantly share code, notes, and snippets.

@dmolsen
Created January 9, 2014 15:32
Show Gist options
  • Save dmolsen/8335963 to your computer and use it in GitHub Desktop.
Save dmolsen/8335963 to your computer and use it in GitHub Desktop.
This is the organization and naming scheme for $this->navItems in v0.7.0 of Pattern Lab
Array
(
[patternTypes] => Array
(
[0] => Array
(
[patternTypeLC] => atoms
[patternTypeUC] => Atoms
[patternType] => 00-atoms
[patternTypeDash] => atoms
[patternTypeItems] => Array
(
[0] => Array
(
[patternSubtypeLC] => global
[patternSubtypeUC] => Global
[patternSubtype] => 01-global
[patternSubtypeDash] => global
[patternSubtypeItems] => Array
(
[0] => Array
(
[patternPath] => 00-atoms-01-global-00-colors/00-atoms-01-global-00-colors.html
[patternSrcPath] => 00-atoms/01-global/00-colors.mustache
[patternName] => Colors
[patternPartial] => atoms-colors
)
)
)
)
)
[3] => Array
(
[patternTypeLC] => templates
[patternTypeUC] => Templates
[patternType] => 03-templates
[patternTypeDash] => templates
[patternItems] => Array
(
[0] => Array
(
[patternPath] => 03-templates-00-homepage/03-templates-00-homepage.html
[patternSrcPath] => 03-templates/00-homepage.mustache
[patternName] => Homepage
[patternPartial] => templates-homepage
)
[1] => Array
(
[patternPath] => 03-templates-01-blog/03-templates-01-blog.html
[patternSrcPath] => 03-templates/01-blog.mustache
[patternName] => Blog
[patternPartial] => templates-blog
)
[2] => Array
(
[patternPath] => 03-templates-02-article/03-templates-02-article.html
[patternSrcPath] => 03-templates/02-article.mustache
[patternName] => Article
[patternPartial] => templates-article
)
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment