unclecheese / silverstripe-green-addons
Addons for the silverstripe-green module that provide template parsing and code generation
Installs: 15
Dependents: 0
Suggesters: 1
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- symfony/filesystem: ^3.1
- unclecheese/mock-dataobjects: ^1.0
- unclecheese/reflection-templates: dev-master
- unclecheese/silverstripe-green: *
This package is auto-updated.
Last update: 2024-11-29 04:46:58 UTC
README
This module provides additional feautres to the silverstripe-green module.
Installation
composer require unclecheese/silverstripe-green-addons
Auto-populating content
You can parse your index.ss
template for variables and auto-create content using a task:
$ framework/sake dev/tasks/GreenTemplateParserTask module=my-design-module
This task looks at both variables and blocks defined in your template, converts them into the appropriate structure in JSON or YAML, and assigns placeholder content to them.
This feature is also available when editing YAML in the CMS. Just click (Load from template) above the code editor, and it will populate the editor automatically.