You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using handlebars templates I can no longer use hbs elements within script tag like: <script> obj.doSomething({{{hbsVar}}}); </script>
and
CDATA within script <script type="text/javascript"> <!--//--><![CDATA[//><!-- some js here... //--><!]]> </script>
since version 2.2.0.
I get parsing error on these parts.
The CDATA section is part of my old, Gemius code and I assume I could remove them not to have errors and should be fine but issue with {{{hbsVar}}} is harder to fix this way.
startDelim and endDelim are set to {[{ and }]}
I use Grunt plugin with config: nggettext_extract: { custom: { options: { options: { startDelim: '{[{', endDelim: '}]}' }, extensions: { hbs: "html" } }, files: { "lang/template.pot": ['src/main/js/**/*.js', 'src/**/*.hbs'] } } }
Version 2.1.15 works fine, so I assume that Espree 3.0 which is used since 2.2.0 is causing a problem? Following changelogs I can see that Espree since 3.0 switched to Acorn...
But maybe I am missing something in regards of configuration or is it known thing?
Thanks for hints how that could be handled with the latest version.
The text was updated successfully, but these errors were encountered:
I have an issue when handlebars renders my template script. when handlebars renders, it returns me CDATA on the server, but in localhost everything goes well. I don't know why it returns CDATA
Using handlebars templates I can no longer use hbs elements within script tag like:
<script> obj.doSomething({{{hbsVar}}}); </script>
and
CDATA within script
<script type="text/javascript"> <!--//--><![CDATA[//><!-- some js here... //--><!]]> </script>
since version 2.2.0.
I get parsing error on these parts.
The CDATA section is part of my old, Gemius code and I assume I could remove them not to have errors and should be fine but issue with {{{hbsVar}}} is harder to fix this way.
startDelim and endDelim are set to {[{ and }]}
I use Grunt plugin with config:
nggettext_extract: { custom: { options: { options: { startDelim: '{[{', endDelim: '}]}' }, extensions: { hbs: "html" } }, files: { "lang/template.pot": ['src/main/js/**/*.js', 'src/**/*.hbs'] } } }
Version 2.1.15 works fine, so I assume that Espree 3.0 which is used since 2.2.0 is causing a problem? Following changelogs I can see that Espree since 3.0 switched to Acorn...
But maybe I am missing something in regards of configuration or is it known thing?
Thanks for hints how that could be handled with the latest version.
The text was updated successfully, but these errors were encountered: