2017 © Pedro Peláez
 

library html5shiv

Html5Shiv for AsseticImporter

image

apnet/html5shiv

Html5Shiv for AsseticImporter

  • Friday, July 8, 2016
  • by covex-nn
  • Repository
  • 2 Watchers
  • 0 Stars
  • 845 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Html5Shiv Asset Importer

Installation

Add requirements to composer.json:, (*1)

``` json { "require" : { "apnet/html5shiv" : "~3.7" } }, (*2)


Configurations -------------- Register `ApnetAsseticImporterBundle` bundle in the `AppKernel.php` file ``` php // ...other bundles ... $bundles[] = new Apnet\AsseticImporterBundle\ApnetAsseticImporterBundle();

Add Html5Shiv importer to services.yml, (*3)

``` yml services: apnet.assetic.importer.html5shiv: parent: assetic.importer_path arguments: - %kernel.root_dir%/../vendor/apnet/html5shiv/app/Resources/assets/dist - html5shiv tags: - { name: apnet.assetic.config_mapper }, (*4)


Twig ---- To include Html5Shiv into Twig template use **imported_asset** function: ``` html <!--[if lt IE 9]><script src="{{ imported_asset('html5shiv/html5shiv.min.js') }}"></script><![endif]-->

or/and, (*5)

html <!--[if lt IE 9]><script src="{{ imported_asset('html5shiv/html5shiv-print.min.js') }}"></script><![endif]-->, (*6)

The Versions