Skip to content

Blade templates

Blade components keep templates clear and reusable, so changes are quicker to make and less prone to errors.

Background

Blade is Laravel's template engine and also works in Statamic. It keeps presentation and logic apart, so templates stay readable and later changes cost less.

Reusable components

We build buttons, cards and form fields once as Blade components and use them everywhere. A change then applies in every place at once. The components follow the design system, so new pages are assembled from tested parts.

Security

Blade escapes output by default, which blocks cross-site scripting. We allow raw output only for checked content and document each case.

What we focus on

  • No database queries or business logic in templates

  • Accessible, semantic HTML built into the components

  • Compiled and cached views in production

  • Automated tests for critical components

Blade with Svelte, Vue.js and Antlers

For interactive parts, we combine Blade with Svelte or Vue components. Pages are still rendered on the server, so search engines and screen readers get full HTML. Antlers is the default in Statamic. We use Blade when templates need complex logic or reuse Laravel components.

Project enquiry

Back to top