Skip to Content
Menu
This question has been flagged
1341 Zobrazenia

Uncaught (in promise) Error: QWeb2 - template['my_template']: Error evaluating template: SyntaxError: Unexpected identifier 'dict'

this error is caused by this line 

$('#my_container').append(qweb.render('my_template', {data: data}));

i want to replace a div(my_container) in website with a template that i've created

'assets': {
​'web.assets_frontend': [
​'my_module/static/src/js/my_js.js',
],
'web.assets_qweb': [
'my_module/static/src/xml/my_template.xml',
],
},
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
dec 22
6048
0
dec 24
1139
1
máj 24
1972
0
jan 24
7081
0
mar 21
2122