diff --git a/README.md b/README.md index a9509c4..163dca6 100644 --- a/README.md +++ b/README.md @@ -21,23 +21,21 @@ The package will automatically register itself. ## Usage -### Collection +### Bard ```blade - @collection('pages', ['where' => 'title:My Title,author:Erin', 'limit' => 3, 'orderBy' => 'title:desc']) - {{ $entry['title'] }} - @endcollection +@bard($entry['content']) + <p>Type is {{ $set['type'] }}</p> + @include("partials/{$set['type']}", [ 'data' => $set['content']]) +@endbard ``` -### Bard +### Collection ```blade -@collection('blade') - @bard($entry['content']) - <p>Type is {{ $set['type'] }}</p> - @include("partials/{$set['type']}", [ 'data' => $set['content']]) - @endbard -@endcollection + @collection('pages', ['where' => 'title:My Title,author:Erin', 'limit' => 3, 'orderBy' => 'title:desc']) + {{ $entry['title'] }} + @endcollection ``` ### Globals @@ -57,7 +55,7 @@ Run the tests with: vendor/bin/phpunit ``` -### Changelog +## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.