simple implementation of multiple content collections for a page

This commit is contained in:
Andy Miller
2015-09-06 12:59:34 -06:00
parent a5e2f76cb8
commit 0688909fb7

View File

@@ -1915,7 +1915,11 @@ class Page
$cmd = (string) key($value);
$params = (array) current($value);
} else {
return $value;
$result = [];
foreach($value as $key => $val) {
$result = $result + $this->evaluate([$key=>$val])->toArray();
}
return new Collection($result);
}
// We only evaluate commands which start with @