ekandreas / bladerunner

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

New filters and hooks for data and View Factory interaction #38

Closed tomasvanrijsse closed 7 years ago

tomasvanrijsse commented 8 years ago

I had two use cases which weren't yet possible and found some minor bugs

1) I want to add data to all views like a ViewComposer would enable. This was only possible when the Template handler was active. I've added two filters for the same purpose in the global bladerunner function.

2) I want to call the startPush and stopPush functions from the View Factory to add some scripts without changing the blade files, because they are from another package. Therefore I added two actions to be able to hook into the initialized Blade instance.

codecov-io commented 8 years ago

Current coverage is 11.14% (diff: 0.00%)

Merging #38 into master will increase coverage by 0.03%

@@             master        #38   diff @@
==========================================
  Files            10         10          
  Lines           315        314     -1   
  Methods          47         47          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits             35         35          
+ Misses          280        279     -1   
  Partials          0          0          

Powered by Codecov. Last update 3ace197...2ddd733