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
I have a base template: views/main.html
and I output all the javascript files with the following command:
{greenscript.js output: 'all' /}
I also have an index.html: views/Application/index.html
There is nothing special in it.
And I have an index.js: public/javascripts/Application/index.js
Although I do not import it, greenscript automagically includes it in the output as below.
Actually that may be smth I would want but unfortunately the dependencies are ignored.
The dependencies are:
js.Application/index=dataTables.dateEuro,chosen.jquery.min,jquery-ui-timepicker-addon,jquery-ui-timepicker-tr
But if I include it manually in index.html:
{greenscript.js 'Application/index' /}
dependencies are included, everything is fine except that there are 2 imports for index.js in the output.
FYI if I define the dependency as (by adding "js" to "Application/index")
js.Application/index.js=dataTables.dateEuro,chosen.jquery.min,jquery-ui-timepicker-tr,json2,jsonformat
dependencies are loaded correctly. (again without explicitly including Application/index.js)
I have a base template: views/main.html
and I output all the javascript files with the following command:
{greenscript.js output: 'all' /}
I also have an index.html: views/Application/index.html
There is nothing special in it.
And I have an index.js: public/javascripts/Application/index.js
<script type="text/javascript" src="/public/javascripts/Application/index.js" ></script>Although I do not import it, greenscript automagically includes it in the output as below.
Actually that may be smth I would want but unfortunately the dependencies are ignored.
The dependencies are:
js.Application/index=dataTables.dateEuro,chosen.jquery.min,jquery-ui-timepicker-addon,jquery-ui-timepicker-tr
But if I include it manually in index.html:
{greenscript.js 'Application/index' /}
dependencies are included, everything is fine except that there are 2 imports for index.js in the output.
<script type="text/javascript" src="/public/javascripts/Application/index.js" ></script> <script type="text/javascript" src="/public/javascripts/Application/index.js" ></script>Am I doing smth wrong?
The text was updated successfully, but these errors were encountered: