Download the PHP package roots/acorn-fse-helper without Composer
On this page you can find all versions of the php package roots/acorn-fse-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roots/acorn-fse-helper
More information about roots/acorn-fse-helper
Files in roots/acorn-fse-helper
Package acorn-fse-helper
Short Description Bootstrap FSE support in Acorn-based WordPress themes.
License MIT
Informations about the package acorn-fse-helper
Acorn FSE Helper
Acorn FSE Helper provides an easy way to initialize and work with block templates in themes powered by Acorn.
Requirements
Installation
Install via Composer:
Getting Started
Once installed, begin by initializing full-site editing in your theme using Acorn's CLI:
Initializing ensures your current activated theme supports block-templates
as well as provides you with the option to publish initial stubs to get started with.
Usage
Once initialized, any block templates located in templates/
will be given priority over existing Blade views.
Blade Directives
To assist with hybrid theme development, Acorn FSE Helper includes a few useful Blade directives out of the box for working with blocks inside of views.
@blocks
The @blocks
directive allows you to render raw block markup inside of a view using do_blocks()
:
@blockpart
The @blockpart
directive provides a convenient way to render block template parts inside of your views using block_template_part()
:
To render multiple template parts at once, you may pass an array in the order you wish them to be rendered in:
Bug Reports
If you discover a bug in Acorn FSE Helper, please open an issue.
Contributing
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
License
Acorn FSE Helper is provided under the MIT License.