JS errors in templating language

I've implemented TemplateLanguage: HTML + Perl. But, have a little problem: if JS syntax is incorrect because of perl parts, it shows an error

Disabling inspections doesn't help.

Is there any way to avoid this?

0
3 comments
Official comment

Most likely it's because Django has an instance of TemplateLanguageErrorFilter which suppresses the errors. Or it can add something invisible to keep parser happy; investigating its PSI tree can help.

Avatar
Permanently deleted user

Works fine in Django btw

0
Avatar
Permanently deleted user

Works like a charm, thanks!

0

Please sign in to leave a comment.