https://github.com/ubermanu/magento2-motu
🏝️ An island architecture implementation for Magento 2 (WIP)
https://github.com/ubermanu/magento2-motu
island island-architecture magento2 progressive-enhancement
Last synced: 2 months ago
JSON representation
🏝️ An island architecture implementation for Magento 2 (WIP)
- Host: GitHub
- URL: https://github.com/ubermanu/magento2-motu
- Owner: ubermanu
- License: mit
- Created: 2023-02-02T12:25:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T09:44:41.000Z (over 1 year ago)
- Last Synced: 2025-03-08T17:01:54.705Z (3 months ago)
- Topics: island, island-architecture, magento2, progressive-enhancement
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Magento 2 - Motu
An implementation of the island pattern for Magento 2.
> The islands architecture encourages small, focused chunks of interactivity within server-rendered web pages. The output of islands is progressively enhanced HTML, with more specificity around how the enhancement occurs. Rather than a single application being in control of full-page rendering, there are multiple entry points. The script for these "islands" of interactivity can be delivered and hydrated independently, allowing the rest of the page to be just static HTML.
From [Islands Architecture](https://www.patterns.dev/posts/islands-architecture/)
## Installation
```bash
composer require ubermanu/magento2-motu
```## Quick start
Create a new island block:
```php
```
That's it! The island will be rendered in the page and hydrated by the client-side script.