Skip to content

An expansion pack for silverstripe-green that provides template parsing and code generation

License

Notifications You must be signed in to change notification settings

unclecheese/silverstripe-green-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Addons for SilverStripe Green

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.

About

An expansion pack for silverstripe-green that provides template parsing and code generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published