mutewinter / tapas-with-ember

🚫 UNMAINTAINED: A Brunch skeleton for rapid Ember development. Including Ember installation scripts, environment-specific JS builds, generators, and Ember.vim support.
Other
127 stars 19 forks source link

How to setup emblem.js #15

Closed tikhonbelousko closed 10 years ago

tikhonbelousko commented 10 years ago

Hi!

I really like your skeleton, great job, but I want to be able to use emblem instead of handlebars. How to setup it? What do I have to change to setup generated templates and make everything work just like handlebars.

clekstro commented 10 years ago

This should be pretty simple to do. First, you need to install emblem with bower install emblem.js --save Then you need to add emblem-brunch to the project with npm install emblem-brunch --save I then replace that version with the git version, so that the line looks like this: "emblem-brunch": "git+https://github.com/machty/emblem-brunch.git#master",

The final step necessary is to add the following block to the templates section of config.coffee:

paths:
    jquery: 'bower_components/jquery/dist/jquery.min.js'
    ember: 'vendor/ember/production/ember.js'
    handlebars: 'bower_components/handlebars/handlebars.min.js'
    emblem: 'bower_components/emblem.js/emblem.min.js'

Hope that helps :)

mutewinter commented 10 years ago

Woah @clekstro comes out of nowhere and kills it. This sounds like a great solution. Let us know if it works @DaZzz.

clekstro commented 10 years ago

Thanks for the kind words @mutewinter! @DaZzz, I've added a new commit to my fork which shows the result of the steps described above: https://github.com/fauxton/tapas-with-ember/commit/e33b63a1a83b74eb2eff54abc94e4d59265dc96a

mutewinter commented 10 years ago

Assuming this worked. Closing.