jackmcdade / statamic-blade-components

A Laravel Blade templates integration for Statamics Antlers engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Statamic Blade Components

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 }}

or even named slots

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

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.

About

A Laravel Blade templates integration for Statamics Antlers engine.

License:MIT License


Languages

Language:PHP 100.0%