visuellverstehen/statamic-content-renderer
A Statamic addon by visuellverstehen that simplifies rendering content from your entries and fields into clean, ready-to-use output. It streamlines templating and front-end display so you can build and maintain content-driven sites with less effort.
composer require visuellverstehen/statamic-content-renderer, then publish the config: php artisan vendor:publish --tag=statamic-content-renderer-config.config/statamic-content-renderer.php — that file is the contract for how Bard/Replicator set types map to Blade views or renderer classes. The README's config example is the fastest way to understand the shape; the package source (src/) is small enough to read end-to-end in one sitting.ContentRenderer/HtmlRenderer service of your own, so that when set definitions change you have one seam to update and one place to add caching.updated_at (or the content hash), not on the request, and you get cheap invalidations for free. This matters most when the source of truth is a remote Statamic API and every render is a round-trip.?augmented=true, or by resolving IDs yourself — before handing the array to the renderer. The renderer renders what it's given; it won't chase relationships.tests/fixtures/*.json and assert on rendered output. This is the single highest-value test you can write for this package, because config drift is the main failure mode and fixtures catch it immediately.>=2.0.1. 2.0.1 fixes missing set indexes in Bard content rendering — sets nested inside Bard content could render without their index resolved. If you're on 2.0.0 and seeing sets that render partially, render the wrong view, or come out empty while top-level Replicator sets work fine, that's the bug. Upgrade before debugging your config.type/_id match a config key exactly? (3) does the view path resolve? Add a temporary Log::debug() in your renderer wrapper to dump the incoming node types.{!! !!} in the places you intend and make sure any user-supplied or API-sourced attributes are escaped. The renderer won't do this policy for you.php artisan config:clear — a stale cached config is an easy 20 minutes lost, and the symptom (old set behaviour) looks identical to a renderer bug.How can I help you explore Laravel packages today?