octoper/statamic-blade-components

There is no license information available for the latest version (1.0.1) of this package.

Use Blade components inside Statamic's Antler template engine

Fund package maintenance!
octoper

Installs: 3 457

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 2

Forks: 4

Open Issues: 0

Type:statamic-addon

1.0.1 2021-03-30 23:39 UTC

This package is auto-updated.

Last update: 2021-09-11 22:25:02 UTC


README

Statami v3 Packagist Tests StyleCI

A Laravel Blade Components integration for Statamics Antlers template engine.

Installation

You can install the package via composer:

composer require octoper/statamic-blade-components

General documentation

Laravel Blade Components

How to be used with the Antlers template engine

{{ component:hello }}

Passing Initial Parameters

You can pass data into a component by passing additional parameters

{{ component:avatar username="johndoe" }}

Passing Slots

You can pass additional content to your component via "slots" too.

{{ component:label for="email" }}
	Email
{{ /component:label }}

or even named slots

{{ component:label for="email" }}
	{{ component:slot name="title" }}
		Email
	{{ /component:slot}}
{{ /component:label }}

Testing

composer test

Security

If you discover any security related issues, please email me@octoper.me instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.