Skip to content

Commit c546e24

Browse files
committed
adding support for defaultPattern
1 parent 4e6c4f7 commit c546e24

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/config.yml.default

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ cacheBusterOn: "true"
3737
exportDir: "export"
3838
publicDir: "public"
3939
sourceDir: "source"
40+
41+
# defaultPattern to show on load
42+
defaultPattern: "all"

src/PatternLab/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public static function init($baseDir = "", $verbose = true) {
235235
// which of these should be exposed in the front-end?
236236
self::$options["exposedOptions"] = array();
237237
self::setExposedOption("cacheBuster");
238+
self::setExposedOption("defaultPattern");
238239
self::setExposedOption("ishFontSize");
239240
self::setExposedOption("ishMaximum");
240241
self::setExposedOption("ishMinimum");

0 commit comments

Comments
 (0)