apnet / jquery
jQuery for AsseticImporter
Installs: 1 015
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- apnet/assetic-importer-bundle: ~1.4
Requires (Dev)
- apnet/coding-standard: ~2.0
- apnet/functional-test-bundle: ~1.2
- covex-nn/twig-callable-bridge-bundle: ~1.1
- jquery/jquery-source: ~2.2
- knplabs/knp-markdown-bundle: ~1.3
- phpunit/phpunit: ~4.0
- symfony/monolog-bundle: ~2.3
- symfony/symfony: ~2.3|~3.0
This package is not auto-updated.
Last update: 2022-02-01 12:34:22 UTC
README
Installation
Add requirements to composer.json:
{ "require" : { "apnet/jquery" : "~2.2" } }
Configurations
Register ApnetAsseticImporterBundle
bundle in the AppKernel.php
file
// ...other bundles ... $bundles[] = new Apnet\AsseticImporterBundle\ApnetAsseticImporterBundle();
Add jQuery importer to services.yml
services: apnet.assetic.importer.jquery: parent: assetic.importer_path arguments: - %kernel.root_dir%/../vendor/apnet/jquery/app/Resources/assets/dist - jquery tags: - { name: apnet.assetic.config_mapper }
Twig
To include jQuery into Twig template use imported_asset function:
<script type="text/javascript" src="{{ imported_asset('jquery/jquery.min.js') }}"></script>