2017 © Pedro Peláez
 

library l4-asset-emblem

Laravel 4 Asset Pipeline Package For Emblem.js

image

andriybazyuta/l4-asset-emblem

Laravel 4 Asset Pipeline Package For Emblem.js

  • Friday, January 24, 2014
  • by andriybazyuta
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel 4 Asset Pipeline Package For Emblem.js

Bring in your .emblem templates into your Laravel 4 application., (*1)

Installation

Edit your project's composer.json file to require andriybazyuta/l4-asset-emblem., (*2)

It might look something like:, (*3)

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

Next, update Composer from the Terminal:, (*4)

    composer update

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

    'Andriybazyuta\L4AssetEmblemjs\L4AssetEmblemjsServiceProvider'

Usage

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

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

Now create a file app/assets/javascripts/myfirst.jst.hbs, (*7)

    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, (*8)

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

The Versions

24/01 2014

dev-master

9999999-dev

Laravel 4 Asset Pipeline Package For Emblem.js

  Sources   Download

The Requires

 

The Development Requires

by Andriy Bazyuta