Use Laravel template in WordPress

I have a template in Laravel that uses Blade. I would like to share that template with WordPress. Is it possible? I want to do it because I have a lot of if/then logic in the templates and I don’t want to maintain two versions of the template if I don’t have to.

Here is a overly simplified example:

Read More

site.blade.php

<!doctype html>
<html>        
    <body>
    @include('layouts.site.header')
    @yield('content')
</body>
</html>

site.header.blade.php

<header>
    <img src="{{$imageUrl}}">
</header>

Any way to use the site.blade.php template in WordPress? Or if not, is there a way to get the HTML output from site.header.blade.php into WordPress efficiently?

Related posts

Leave a Reply