Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
better headings
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Aug 16, 2020
1 parent 71bd374 commit e8c8366
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down

0 comments on commit e8c8366

Please sign in to comment.