Fabian Michael

Template Attributes

Vue.js/Laravel-Blade-like attribute API for snippets and templates.

<button <?= attributes([
    'type' => $type ?? 'button',
    'class' => [
        'btn',
        'btn--large' => $size === 'large'
    ],
 ])->merge($attr ?? []) ?>>
Version
2.2.0
License
MIT
Stars
19
Supports
K4 K3
Implements
More