Render Blade from string instead of File
laravel-4, laravel-blade
Solution
Hope this helps,
https://github.com/TerrePorter/StringBladeCompiler
This is a fork of the next link that removes the db model requirement and replaces it with a array that requires three required keys ('template', 'cache_key', 'updated_at') instead of the full Eloquent model.
https://github.com/Flynsarmy/laravel-db-blade-compiler
This uses a Eloquent model to get the template.
Problem
How can I render an string which contains blade syntax? ``` View::make('directory.file-name')->with('var', $var); // Usual usage View::render('{{$var}}')->with('var', $var); // Like this for Example ``` I use wrote an script that produces blade syntax and I want to give it's output directly to blade engine if possible. Thanks