maccman / sprockets-commonjs

Adds CommonJS support to Sprockets
178 stars 66 forks source link

Using haml templates with sprockets-commonjs #32

Open alduro opened 10 years ago

alduro commented 10 years ago

Any idea about how can I use HAML as template engine ?

My basic Backbone.View using requirejs-rails

define(['jquery'
        , 'underscore'
        , 'backbone'
        , 'views/view_mixins'
        , 'templates/home'
        , 'channel'
        ], function($, _
                     , Backbone
                     , UserMixin
                     , TemplateHome
                     , Channel
                    ) {

  var HomeView = Backbone.View.extend({
    viewName: "HomeView",

    template: TemplateHome,