symbiote/silverstripe-components

Create components using SilverStripe.

Installs: 5 416

Dependents: 1

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 2

Open Issues: 4

Type:silverstripe-vendormodule

3.2.1 2019-04-29 03:08 UTC

README

Build Status Latest Stable Version Latest Unstable Version Total Downloads License

This module allows you to use special <:TemplateName> syntax to include templates. This allows you to pass inner HTML into a template, much like you can do in React with the children properties. Using the <:TemplateName> syntax will not automatically pass variables in the current scope like <% include %>.

<:MyButtonTemplate 
  icon="fa fa-icon"
  title="$Title"
>
    <span class="text">
        Look at me! Passing HTML in here!
    </span>
</:MyButtonTemplate>
<:SelfClosingTag passvariable="hey" />

Composer Install

SilverStripe 3.X

composer require symbiote/silverstripe-components:~1.0

SilverStripe 4.X

composer require symbiote/silverstripe-components:~3.0

Requirements

  • PHP 5.6+
  • SilverStripe 4.0+

Documentation

Credits