From 14060f3045940239b99ea5531b42e0ca2dbd4dd9 Mon Sep 17 00:00:00 2001 From: Laura Davis-Robeson Date: Wed, 20 Sep 2017 14:13:55 -0700 Subject: [PATCH] Update data.php so _data files will support .yml syntax Currently only .json and .yaml are supported. --- src/PatternLab/Data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PatternLab/Data.php b/src/PatternLab/Data.php index e0da3fc7..0ddee97d 100644 --- a/src/PatternLab/Data.php +++ b/src/PatternLab/Data.php @@ -125,7 +125,7 @@ public static function gather($options = array()) { $pathName = $file->getPathname(); $pathNameClean = str_replace($sourceDir."/","",$pathName); - if (!$hidden && (($ext == "json") || ($ext == "yaml"))) { + if (!$hidden && (($ext == "json") || ($ext == "yml") || ($ext == "yaml"))) { if ($isListItems === false) {