MarionetteJS v1.8.8
MarionetteJS requires Backbone and a number of dependencies included in this package.
// composer.json
{
"require": {
// ...
"bmatzner/marionette-bundle": "~1.8"
}
}
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Bmatzner\MarionetteBundle\BmatznerMarionetteBundle(),
new Bmatzner\UnderscoreBundle\BmatznerUnderscoreBundle(),
new Bmatzner\Json2Bundle\BmatznerJson2Bundle(),
new Bmatzner\JQueryBundle\BmatznerJQueryBundle(),
new Bmatzner\BackboneBundle\BmatznerBackboneBundle(),
// ...
);
}
$ php composer.phar update bmatzner/marionette-bundle
Given your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources
$ php app/console assets:install --symlink web
<script type="text/javascript" src="{{ asset('bundles/bmatznerjson2/js/json2.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/bmatznerjquery/js/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/bmatznerunderscore/js/underscore.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/bmatznerbackbone/js/backbone.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/bmatznermarionette/js/backbone.marionette.min.js') }}"></script>
Alternatively, use Lo-Dash as a drop-in replacement for Underscore (also available as a Symfony bundle "bmatzner/lodash-bundle")
Refer to the source code of the included files for license information
How can I help you explore Laravel packages today?