在我的一个twig模板中,我有一个javascript块
我必须给出某个html文件的路径。
我试过这个,但有控制台错误
jQuery(document).ready(function ($) {
$("#content").builder({
themeFile: '{{ "ContentbuildBundle:Template:theme.html.twig" }}',
toolbar: 'right',
onRender: function() {
$('#contentarea').trigger('focusout');
}
});
}