Provides asset class for easy integration of Underscore.js into your Yii2 application.
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist "madand/yii2-underscore:*"
or add
"madand/yii2-underscore": "*"
to the require
section of your composer.json
file.
You may also specify the version of Underscore to install (e.g. 1.5, 1.8), starting from 1.5:
# this will install the latest revision in 1.8 branch (e.g. 1.8.3)
composer require --prefer-dist "madand/yii2-underscore:1.8"
In the view file register the asset:
\madand\underscore\UnderscoreAsset::register($this);
The BSD License (BSD). Please see License File for more information.