TwigBridge
TwigBridge copied to clipboard
Give the power of Twig to Laravel
I'm trying to use this on Lumen. Right away I get ``` Class 'Symfony\Component\VarDumper\Cloner\VarCloner' not found ``` I suspect that the docs on which extensions to disable are not quite...
The Url extension that TwigBridge comes with defines all URLs generated with Laravel helper methods as safe - like `route(...)`, `url(...)`, `asset(...)` etc. This causes invalid HTML. For example, in...
fix for #256 without use dependency injection in constructor the translator class will initialize when we use it
Is here an user which is use TwigBridge on L5.2.26? Because on artisan or web the registerEngine() methode in the service provider produce an exception because the dependency `Illuminate\Translation\Translator` of...
Hi, i wondering how to make a custom tags base on laravel blade statement like `@permissions` or `@can` ? Thanks
I saw that this was asked in #39 and was then referenced as part of "Improve template loading" in 0.6.0 (#62 and #72) and checked off, but it's not clear...
I'm using Lumen, but can't use TwigBridge due the issue Lumen Application is not instance of `Illuminate\Contracts\Foundation\Application`, it extends `Illuminate\Container\Container` `Argument 3 passed to TwigBridge\Bridge::__construct() must be an instance of...
I am using laravel for the very first time this afternoon.. as soon as i got the views i quickly wanted out and wanted to use twig.. google brought me...
I've just switched from barryvdh/laravel-twigbridge to rcrowe/TwigBridge. With @barryvdh 's, I had this filter: ``` php new Twig_SimpleFilter('js', function($data) { if($data instanceof Twig_Markup) $data = (string)$data; return Json::encode($data, JSON_ESCAPE_SCRIPTS); },['is_safe'=>['html']]),...