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.
<script type="text/javascript" src="/public/javascripts/Application/index.js" ></script>
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?
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?