Re: [haml] Re: Interpolating underscore.js template with HAML

2012-10-27 Thread Duncan Beevers
I'm a big fan of jamesotron hamlbars https://github.com/jamesotron/hamlbars The most basic thing the gem provides is a helper method for generating expressions that will later hold interpolated values. The helper method also accepts blocks, and automatically generates appropriate opening/closing t

Re: [haml] Haml in Sublime Text 2 without Rails

2012-10-27 Thread Rhett Sutphin
Hi, On Oct 27, 2012, at 7:35 PM, Hoc Phan wrote: > Are you saying that when I go to localhost:port/file.html, it automatically > executes a build process before render the page? That's right, that's what middleman server does out of the box. Try it and see. For an even nicer workflow, you can

Re: [haml] Haml in Sublime Text 2 without Rails

2012-10-27 Thread Hoc Phan
Are you saying that when I go to localhost:port/file.html, it automatically executes a build process before render the page? On Saturday, October 27, 2012 2:43:27 PM UTC-7, Rhett Sutphin wrote: > > Hi, > > On Oct 25, 2012, at 2:18 AM, Hawk Phil wrote: > > > There doesn't seem to be instruction

Re: [haml] Haml in Sublime Text 2 without Rails

2012-10-27 Thread Rhett Sutphin
Hi, On Oct 25, 2012, at 2:18 AM, Hawk Phil wrote: > There doesn't seem to be instructions to set things up for Sass and Haml. I > just want to have Middleman to set a "watch" for .haml and .sass files and > automatically detect changes to convert to .html and .css in certain folders. > How do

[haml] Re: Defining a class inside a .haml file and then using haml_tag, haml_concat from it?

2012-10-27 Thread sol.manager
Stop me if I am wrong, but Haml isn't for defining classes. It is for replacing HTML. You can use inline Ruby, but I don't use Haml to define Ruby classes. I consider it to be for the View portion of the MVC model. On Sunday, May 20, 2012 11:49:29 AM UTC-4, Fraser Murray wrote: > > I'm defining

[haml] Re: Defining a class inside a .haml file and then using haml_tag, haml_concat from it?

2012-10-27 Thread sol.manager
Stop me if I am wrong, but Haml isn't for defining classes. It is for replacing HMTL. You can use inline Ruby, but I don't use Haml to define Ruby classes. I consider it to be for the View portion of the MVC model. On Sunday, May 20, 2012 11:49:29 AM UTC-4, Fraser Murray wrote: > > I'm defining