Fun with Blade directives
– ryangjchandler.co.uk - submitted by Ryan Chandler
Some fun things you can do with Blade directives.
Read more [ryangjchandler.co.uk]
Posts tagged with templates
– ryangjchandler.co.uk - submitted by Ryan Chandler
Some fun things you can do with Blade directives.
Read more [ryangjchandler.co.uk]
– ryangjchandler.co.uk - submitted by Ryan Chandler
Let's take a look at how you could build your own template engine in PHP.
Read more [ryangjchandler.co.uk]
Join 9,500+ smart developers
Every month I share what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
🔥 You can use @laravelphp’s Blade components for layouts too. Way cleaner than extending imho. pic.twitter.com/Ol29sCsOci
— Freek Van der Herten (@freekmurze) April 10, 2020
TIL: in @laravelphp blade you can pass data up the main layout you are extending #laravel #php pic.twitter.com/IEWYHv0uyE
— Sidrit Trandafili (@strandafili) 23 december 2019
Read more [twitter.com]
My colleague Sebastian has been busy creating some low level Vue components for a client project. For these components he use JSX.
In my most recent project at work, I'm experimenting with JSX templates in Vue. Vue offers first-party support for JSX with near-zero configuration, but it doesn't seem to be commonly used in the ecosystem. I'm going to share my initial thoughts on using JSX with Vue. I'll be posting side-by-side examples of Vue templates and their JSX counterparts.
Read more [sebastiandedeyne.com]
? Go crazy with Blade directives. The simplest things can abstract away tons of visual noise from your templates. pic.twitter.com/p5udGWJkhd
— David Hemphill (@davidhemphill) June 22, 2017
Read more [twitter.com]
Bobby Bouwmann, a very helpful guy, created a new free service that can generate email markdown themes for use in a Laravel application.
Sebastian De Deyne, my colleague at Spatie, wrote a very nice overview of all different methods in Vue to define a template.
This article isn't about Vue's template syntax, but about where and how to define your templates. I wrote this because at the time of writing there aren't really resources that consolidate all the different manners to manage your templates.I've divided the different ways to define templates in three different categories, each with their own drawbacks:
- Writing templates that compile at runtime (lesser performance)
- Using single file .vue components (requires a build step)
- Manually writing render functions (pure JavaScript, no html-like template syntax)
https://sebastiandedeyne.com/posts/2016/dealing-with-templates-in-vue-20
Jonathan Reinink made some very pretty slides with lots of good advice regarding templates.
Eric Barnes of Laravel News news demonstrates a nice way to loop over a collection in a Blade view using @each.