使用Symfony / Twig上传jQuery文件

时间:2022-10-24 14:25:24

I am trying to implement the Basic Plus UI example from the jquery file upload demo page within my Symfony2 project. The problem is, that Twig throws an error when i use the script language 'text/x-tmpl' provided by blueimp within my body block:

我正在尝试从我的Symfony2项目中的jquery文件上载演示页面实现Basic Plus UI示例。问题是,当我在我的body块中使用blueimp提供的脚本语言'text / x-tmpl'时,Twig会抛出一个错误:

 Unexpected character ";" in library/Book/new.html.twig at line 162

How can i implement the jquery file upload basic plus UI example in a twig template, so that the code within 'text/x-tmpl' does not throw an error ?

如何在twig模板中实现jquery文件上传基本加UI示例,以便'text / x-tmpl'中的代码不会抛出错误?

Regards.

1 个解决方案

#1


2  

Found the answer in twig docs, damn i overread that .. verbatim

在树枝文档中找到了答案,该死的我一遍又一遍地说

#1


2  

Found the answer in twig docs, damn i overread that .. verbatim

在树枝文档中找到了答案,该死的我一遍又一遍地说