Rendering HAML partials from within HAML outside of Rails

前端 未结 5 589
后悔当初
后悔当初 2020-12-31 16:54

I\'m using HAML to generate some static html pages for a site, and I was wanting to split out common components into partials that I can include in multiple pages, just like

5条回答
  •  庸人自扰
    2020-12-31 17:36

    It's best to combine haml & sass with a tool for building static websites. Here's some links:

    • StaticMatic
    • Serve
    • Haml Jekyll -- a fork of Jekyll that supports haml.
    • Middleman

    I'm using jekyll for my blog, but if you're not building a blog it's probably not appropriate for your needs.

提交回复
热议问题