There is no license information available for the latest version (dev-master) of this package.

Laravel 4 Asset Pipeline Package For Emblem.js

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0


dev-master 2014-01-24 14:13 UTC

This package is not auto-updated.

Last update: 2020-11-23 11:36:42 UTC


Bring in your .emblem templates into your Laravel 4 application.


Edit your project's composer.json file to require andriybazyuta/l4-asset-emblem.

It might look something like:

  "require": {
    "laravel/framework": "4.0.*",
    "andriybazyuta/l4-asset-emblem": "dev-master"

Next, update Composer from the Terminal:

    composer update

Once this operation completes, add the service provider. Open app/config/app.php, and add a new item to the providers array.



Once installed you can add this your Asset pipeline manifest file [laravel_root]/app/assets/javascripts/application.js

	//= require handlebars
  //= require ember
  <?= javascript_include_tag("emblem") ?> in your view

Now create a file app/assets/javascripts/myfirst.jst.hbs

	Put some .emblem templates to, /assets/javascript/templates of /assets/javascript/SOME_FOLDER/templates  folder 

After refreshing the page inspect JST object in the javascript console and the function

  Ember.TEMPLATES["mytemplate"] = Emblem.compile(Ember.Handlebars, "template content");