2017 © Pedro Peláez
 

library bladepress

Enables blade support in wordpress

image

iamfredric/bladepress

Enables blade support in wordpress

  • Tuesday, April 25, 2017
  • by iamfredric
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 27 % Grown

The README.md

Bladepress

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

Usage

composer require iamfredric/bladepress

In your project (for example in your functions.php), (*2)

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, (*3)

The Versions

25/04 2017

dev-master

9999999-dev

Enables blade support in wordpress

  Sources   Download

MIT

The Requires

 

by Fredric Lovefors