code16/laravel-content-renderer
Laravel package for rendering content blocks into HTML in a structured, extensible way. Define renderers for different content types, map data to views, and compose pages from reusable components—useful for CMS-like content, editors, and APIs.
This package is used internally for our projects (e.g. Sharp). It allows to render blade <x- components inside HTML content.
For security reasons the content is not directly compiled in blade, instead it replace components with <x-dynamic-component> tag and pass HTML attributes.
All attributes passed to component are strings. Attributes starting with : are not evaluated.
You can install the package via composer:
composer require code16/laravel-content-renderer
composer test
The MIT License (MIT). Please see License File for more information.
How can I help you explore Laravel packages today?