Laravel Packages

Preview Blade Templates in macOS Finder with Quick Blade

Published
Preview Blade Templates in macOS Finder with Quick Blade image

Quick Blade is a macOS Quick Look extension from Tim Gavin. Select a .blade.php file in Finder, press the space bar, and you get the rendered page. It reads the project on disk, so you need no dev server, no database, and no network connection.

Here is what it does with a template:

  • Resolves the layout
  • Inlines your compiled CSS
  • Converts the Blade directives to HTML
  • Fills echoes with stand-in data
  • Styles Flux and Livewire tags
  • Draws Finder thumbnails

Finding the Layout

Quick Blade finds the Laravel project root relative to the file you open. Then it looks for the layout three ways, in order: an <x-layouts.name> component tag, an @extends directive, and the layout attached to a Livewire component class. Files with no layout still render against a built-in stylesheet, as do files outside a Laravel project.

Installing

brew install --cask timgavin/tap/quick-blade

See the GitHub project installation instructions for more details.

Learn More

You can view the source code on GitHub, with more details at quickblade.app.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
Laravel AI SDK and Laravel MCP Security Fixes: Update Now image

Laravel AI SDK and Laravel MCP Security Fixes: Update Now

Read article
Mailbox for Laravel: Preview and Test Rendered Email image

Mailbox for Laravel: Preview and Test Rendered Email

Read article
Count Worker Crashes as Job Exceptions in Laravel 13.34 image

Count Worker Crashes as Job Exceptions in Laravel 13.34

Read article
Elastic Bridge: Eloquent-Style Queries for Elasticsearch and OpenSearch image

Elastic Bridge: Eloquent-Style Queries for Elasticsearch and OpenSearch

Read article
Laravel Release Cycle: Versions, Support Policy, and Dates image

Laravel Release Cycle: Versions, Support Policy, and Dates

Read article
Unlearn.dev goes free for a weekend, October 10 and 11 image

Unlearn.dev goes free for a weekend, October 10 and 11

Read article