PrimeUI 4.1.15 + DataTable + Laravel 5.5
Posted: 28 Feb 2018, 11:58
Dear Sir,
I am trying to integrate PrimeUI into Laravel 5.5, everything seems OK except using the template function for defining custom column.
It is my understanding that PrimeUI utilize mustache.js which use {{}} that might collide with laravel blade {{}} expression. Any input on this is appreciated. Many thanks.
PrimeUI: 4.1.15
Laravel 5.5
PHP: 7.2
I tried to use the follows to bypass {{}} in blade, but it did not work either,
Best Regards,
Frederick
I am trying to integrate PrimeUI into Laravel 5.5, everything seems OK except using the template function for defining custom column.
It is my understanding that PrimeUI utilize mustache.js which use {{}} that might collide with laravel blade {{}} expression. Any input on this is appreciated. Many thanks.
PrimeUI: 4.1.15
Laravel 5.5
PHP: 7.2
Code: Select all
<p-column field="color" headertext="Color" sortable filter>
<template>
<!-- throw error --->
<span style="color:{{color}}">{{color}}</span>
</template>
</p-column>
Code: Select all
<p-column field="color" headertext="Color" sortable filter>
<template>
<!-- throw error --->
<span style="color:@{{color}}">@{{color}}</span>
</template>
</p-column>
Best Regards,
Frederick