I am creating a bundle that requires a 3rd party js file. According to the documentation:
http://symfony.com/doc/current/cookbook/bundles/best_practices.html#vendors
Bundles should not contain 3rd party code. Since the bundle is only used in one part of the site I dont want to include it in my base template file - I want to call it from the twig file, but I am running into a problem there.
All of the demos for including js seem to reference a bundle name, but I have placed my js in app/Resources/public/js
If I use:
{% javascripts
"public/js/jquery.fileupload.js" %}
<script src="{{ asset_url }}" type="text/javascript"></script>
{% endjavascripts %}
It looks in the web directory. Is there any way to use the app dir where all of my other js files live? I'm trying to follow best practices where feasible, but I would really like to keep my js in one place for simplicity, thanks for reading!