dhiraj/yii2-velocityjs

Asset Bundle for Yii2 with Velocity.js

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0 2016-09-13 11:19 UTC

This package is auto-updated.

Last update: 2024-04-09 01:18:46 UTC


README

This extension provides an assets bundle with Velocity.js for Yii framework 2.0 applications.

For license information check the LICENSE-file.

Support

Installation

The preferred way to install this extension is through composer.

Either run

composer require "dhiraj/yii2-velocityjs:~1.0"

or add

"dhiraj/yii2-velocityjs": "~1.0",

to the require section of your composer.json file.

Usage

In view

traversient\yii\velocityjs\AssetBundle::register($this);

or as dependency in your main application asset bundle

class AppAsset extends AssetBundle
{
	// ...

	public $depends = [
		// ...
		'\traversient\yii\velocityjs\AssetBundle'
	];
}

and Velocity.js will be added to your page load.