ekandreas / bladerunner

WordPress plugin for Laravel Blade templating DEPRECATED
http://bladerunner.elseif.se
12 stars 1 forks source link

Need A Template Engine for Plugin #42

Closed zaingithub closed 7 years ago

zaingithub commented 7 years ago

Hello, can i implement your plugin to create template to make a documentation for the example. Or you can make it globally, so everywhere we can use blade whatever in theme or plugin.

I have using h2o template, to make a dynamic unique post. I render that template on post_content when i try to make wp_insert_post();

if this can handle what i want, it will be very nice :)

Thank you

ekandreas commented 7 years ago

The function bladerunner or even better the view functions are globally defined in the Bladerunner plugin. So you can reach the Blade functions both in themes and plugins.

ekandreas commented 7 years ago

Or like this example:

add_filter('bladerunner/template/bladepath', function() {
    return __DIR__.'/views';
});