acalvino4/craft-embed-implicit-default

Extends the twig embed tag to allow an implicit default block

1.0.1 2023-05-11 22:35 UTC

This package is auto-updated.

Last update: 2024-04-12 00:56:11 UTC


README

Extends the twig embed tag to allow an implicit default block. This package enables the easy installation and complete encapsulation of this construct for Craft CMS, but the logic is implemented in Twig Embed Implicit Default to remain applicable to any framework using twig. See that package for full documentation.

Requirements

This plugin requires Craft CMS 4.3.5 or later, and PHP 8.0.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Embed Implicit Default”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require acalvino/craft-embed-implicit-default

# tell Craft to install the plugin
./craft plugin/install embed-implicit-default