Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

iamfredric/bladepress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Bladepress

Bladepress is a simple wrapper to get laravel blade templates to work with your wordpress theme. It's built around duncan3dc/blade.

Usage

composer require iamfredric/bladepress

In your project (for example in your functions.php)

require 'vendor/autoload.php';

Bladepress\Engine::start(
    // First argument is the path to your blade views folder
    '/path/to/blade/views',

    // Second argument is the path to your cache folder
    '/cache/path',

    // Third argument is optional and should contain your view composers
    ['key' => 'Callable composer'],

    // Fourth argument is optional and should contain your cusom
    // blade directives
    ['array', 'of', 'blade', 'directives'] // Optional
);

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages