symbiote / silverstripe-components
Create components using SilverStripe.
Installs: 6 162
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 4
Forks: 4
Open Issues: 3
Type:silverstripe-vendormodule
Requires
Requires (Dev)
Replaces
- dev-master / 4.0.x-dev
- 4.0.0
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.x-dev
- 3.0.0
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.3.x-dev
- 1.3.0
- 1.2.x-dev
- 1.2.1
- 1.2.0
- 1.1.x-dev
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.x-dev
- 1.0.2
- 1.0.1
- 1.0.0
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
- dev-fix-children
- dev-fix-dbcomponent-field
- dev-feature-json-nested
- dev-fix-ss4-json-escaping
- dev-fix-ss3-json-single-quote
- dev-feat-ss3-json-data
- dev-feature-ss4-json-syntax
This package is auto-updated.
Last update: 2024-11-13 07:07:25 UTC
README
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
composer require symbiote/silverstripe-components
Requirements
- SilverStripe ^5
Documentation
Credits
- Cam Spiers for his SilverStripe Compose Parser module. This utilizes and builds upon his work from half a decade ago!