Best strategy to use HAML template with Backbone.js

后端 未结 8 1807
别那么骄傲
别那么骄傲 2021-01-29 23:23

Im getting into Backbone.js to structure the javascript code for my project and I love HAML for templating on the backend(rails), so Id like to use it for Backbone Views templat

8条回答
  •  一个人的身影
    2021-01-29 23:25

    Check out Middleman. It includes haml, sass, coffee, slim, etc. It uses gems like rails does and has a lot of other awesome functionality.

    http://middlemanapp.com/

    They even have a custom extension for backbone, https://github.com/middleman/middleman-backbone

    It also allows you to build it into static html, css, and js for super fast loading.

提交回复
热议问题