-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,40 @@ | ||
# statamic-blade-components | ||
# Statamic Blade Components | ||
|
||
![Statami v3](https://img.shields.io/badge/Statamic-3.0+-FF269E) | ||
![Packagist](https://img.shields.io/packagist/v/octoper/statamic-blade-components) | ||
![Test Suite](https://github.com/octoper/statamic-blade-components/workflows/Test%20Suite/badge.svg) | ||
|
||
A Laravel Blade component integration for Statamics Antlers template engine. | ||
A [Laravel Blade Components](https://laravel.com/docs/7.x/blade#components) integration for Statamics Antlers template engine. | ||
|
||
## Documentation | ||
[Read](./DOCUMENTATION.md) this addon's documentation. | ||
## Installation | ||
Pull in your package with composer | ||
```bash | ||
composer require octoper/statamic-blade-components | ||
``` | ||
|
||
## Resources | ||
* [Statamic 3 Docs](https://statamic.dev) | ||
* [Statamic Discord](https://statamic.com/discord) | ||
## General documentation | ||
[Laravel Blade Components](https://laravel.com/docs/7.x/blade#components) | ||
|
||
## How to be used with the Antlers template engine | ||
```html | ||
{{ component:hello }} | ||
``` | ||
|
||
### Passing Initial Parameters | ||
You can pass data into a component by passing additional parameters | ||
|
||
```html | ||
{{ component:avatar username="johndoe" }} | ||
``` | ||
|
||
### Passing Slots | ||
You can pass additional content to your component via "slots" too. | ||
|
||
```html | ||
{{ component:label for="email" }} | ||
{{ /component }} | ||
``` | ||
|
||
## Security | ||
|
||
|
@@ -21,3 +44,6 @@ If you discover any security related issues, please email [email protected] instead | |
|
||
- [Vaggelis Yfantis](https://github.com/octoper) | ||
- [All Contributors](../../contributors) | ||
|
||
# License | ||
This plugin is published under the MIT license. Feel free to use it and remember to spread love. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters