Package Data | |
---|---|
Maintainer Username: | turtlebits |
Maintainer Contact: | catalin@turtlebits.com (Catalin Dumitrescu) |
Package Create Date: | 2013-08-29 |
Package Last Update: | 2013-08-29 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:22:50 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Asset Manager for Laravel 4
composer.json:
Add "turtlebits/keeper": "dev-master"
to the require
section of composer.json
Register the service provider by adding 'TurtleBits\Keeper\KeeperServiceProvider',
to the providers
section of the app/config/app.php
file
If you use TwigBridge, add 'TurtleBits\Keeper\Extensions\KeeperTwigExtension'
to the extensions
section of the app/config/packages/rcrowe/twigbridge/config.php
file.
This package uses lessphp as a less
compiler, and installs it automatically.
In Blade views:
{{ Keeper::style(array('application', 'structure')) }} {{ Keeper::script(array('jquery', 'application')) }} {{ Keeper::image('logo.jpg') }}
In Twig views:
{{ keeper_style(['application', 'structure'])|raw }}
{{ keeper_script(['jquery', 'application'])|raw }}
{{ keeper_image('logo.jpg') }}