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

2012-10-26 Thread Hawk Phil
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 I do that?

I am a non-Ruby person so sorry for this basic question. Thanks.



On Thursday, October 4, 2012 11:25:42 AM UTC-7, Rhett Sutphin wrote:
>
> Hi, 
>
> On Sep 30, 2012, at 3:27 PM, Hawk Phil wrote: 
>
> > I am a front-end guy using Windows for design and html/js/css coding. My 
> work is separate from the back-end guy using .NET. I am also new to 
> Haml/Sass thing as well as Ruby. And definitely not using Rails. My goal is 
> to make it simple when I save Haml file and refresh browser to see the Html 
> file. So I am looking for either an automatic "watch" or build in a Build 
> System batch for Sublime Text 2. 
> > 
> > I saw people mentioned a lot about StaticMatic. But there seems no 
> update for 2 years https://github.com/staticmatic/staticmatic 
>
> The successor to StaticMatic is Middleman[1]. It has Haml and Sass support 
> built in[2]. Also recommended: the middleman-livereload extension[3]. 
>
> Rhett 
>
> [1]: http://middlemanapp.com/ 
> [2]: http://middlemanapp.com/templates/templates-layouts-partials/ , 
> under "Other Templating Languages" 
> [3]: http://middlemanapp.com/extensions/livereload/ 
>
> > 
> > There is also this site (Is it the same?): 
> http://staticmatic.rubyforge.org/how_to_use.html 
> > 
> > So is StaticMatic "safe" to use any more? Or should I just create a 
> build file in Sublime Text for Haml CLI? Is there example to do this? 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Haml" group. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msg/haml/-/7Tjx59zaUEIJ. 
> > To post to this group, send email to ha...@googlegroups.com. 
>
> > To unsubscribe from this group, send email to 
> haml+uns...@googlegroups.com . 
> > For more options, visit this group at 
> http://groups.google.com/group/haml?hl=en. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/haml/-/MHdnFOo38qEJ.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.



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

2012-10-26 Thread Bryan Li
This works great for getting the values off an variable. Would it work for 
if/else statements though? How do I translate the following?

<% if (boolean) { %>
  Blah blah
<% } %>

On Monday, August 20, 2012 10:34:46 AM UTC-7, Les Nightingill wrote:
>
> The delimiters for haml (erb) collide with the delimiters for the 
> underscore templates...
>
> best way I've found is to change the underscore template settings to the 
> mustache delimiters {{ and }}
>
> from the underscore.js docs:
>
> _.templateSettings = {
>   interpolate : /\{\{(.+?)\}\}/g
> };
>
>
>
> On Thursday, August 16, 2012 10:31:31 AM UTC-7, Ritesh Nadhani wrote:
>>
>> So for my new project we are trying to use HAML/backbone.js/underscore.js 
>> templates. After reading the docs, I could figure out something like this:
>>
>> %script#album-row{ :type => 'text/template' }
>>   .album-row
>> %a{ :href => '<%= href %>'}
>>   <%= name %>
>>
>> While templating, "name" is correctly interpolated but I cannot get 
>> "href" to work.
>>
>> Any thoughts?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/haml/-/Ra7qHxN_k2cJ.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.