{"repo":"roots/acorn-fse-helper","free":true,"listed":false,"github":"https://github.com/roots/acorn-fse-helper","clone":"git clone https://github.com/roots/acorn-fse-helper.git","description":"Bootstrap FSE support in Acorn-based WordPress themes.","language":"PHP","stars":19,"topics":["acorn","acorn-package","block-editor","fse","full-site-editing","gutenberg","laravel","sage","wordpress","wordpress-laravel"],"license":"MIT","category":"cli-tools","readme_excerpt":"Acorn FSE Helper Acorn FSE Helper provides an easy way to initialize and work with block templates in themes powered by Acorn. Support us Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord. Requirements - PHP = 8.1 - Acorn = 4.2 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: Vite Asset Integration Acorn FSE Helper can automatically inject Vite assets (CSS and JavaScrip","default_branch":null,"files":null,"tree":[],"storefront":"/r/roots","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roots/acorn-fse-helper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}