Search code examples
laraveljsrender

using jsrender with laravel


Helo, I would like to jsrender in combination with laravel but i've experienced some problems with the blade engine, since they both use the double bracket notation to store data a can't get them to compile.

In my blade file i have:

@include('templates/note');

and then my template in 'templates/note.blade.php'.

But offcourse thats giving me problems with the {{}}

So how would it be possible to use jsrender in combination with laravel? Any help would be appreciated.


Solution

  • In JsRender and JsViews you can set your own choice of delimiters rather than use the default "{{", "}}".

    See Setting tag delimiters for JsRender for documentation.

    And here is a test case that shows it: $.views.settings.delimiters("@%","%@");