<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lang.ruby.rails.haml">
    <title>gmane.comp.lang.ruby.rails.haml</title>
    <link>http://blog.gmane.org/gmane.comp.lang.ruby.rails.haml</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8120"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8119"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8118"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8117"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8116"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8115"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8114"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8113"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8112"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8111"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8110"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8109"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8108"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8107"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8106"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8105"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8104"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8103"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8102"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8101"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8120">
    <title>Defining a class inside a .haml file and then using haml_tag, haml_concat from it?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8120</link>
    <description>&lt;pre&gt; I'm defining a class within Haml, and I'd like to be able to use the Haml 
helpers within this class. For example:
- class Whatever
   - def self.write
     - haml_concat "something"

- Whatever.write

Ideally, Whatever.write would output "something" to the template, but it 
simply fails with undefined method 'haml_concat' for 
Haml::Engine::Whatever:Class. 

Full stacktrace: haml_test.haml:5:in `write': undefined method 
`haml_concat' for Haml::Engine::Whatever:Class (NoMethodError)
from haml_test.haml:8:in `block in render'
from 
/home/fraser/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml/engine.rb:191:in 
`eval'
from 
/home/fraser/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml/engine.rb:191:in 
`render'
from 
/home/fraser/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml/exec.rb:281:in 
`process_result'
from 
/home/fraser/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml/exec.rb:41:in 
`parse'
from 
/home/fraser/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/lib/haml/exec.rb:21:in 
`parse!'
from /home/fraser/.rvm/gems/ruby-1.9.3-p125/gems/haml-3.1.4/bin/haml:9:in 
`&amp;lt;top (required)&amp;gt;'
from /home/fraser/.rvm/gems/ruby-1.9.3-p125/bin/haml:19:in `load'
from /home/fraser/.rvm/gems/ruby-1.9.3-p125/bin/haml:19:in `&amp;lt;main&amp;gt;'



How can I get this to work properly? I've tried using both extend and 
include Haml::Helpers, but they both fail too. Any ideas? 

&lt;/pre&gt;</description>
    <dc:creator>Fraser Murray</dc:creator>
    <dc:date>2012-05-20T15:49:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8119">
    <title>How does it works haml loops ?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8119</link>
    <description>&lt;pre&gt; 

  Having the following rails view (haml):

.row
  .span7
    %h1 Listing categories
    %p
      - &amp;lt; at &amp;gt;categories.each do |category|
        .accordion-group
          .accordion-heading
            .accordion-toggle{"data-toggle" =&amp;gt; "collapse", "data-target" =&amp;gt; "##{category.path}"}= link_to category.name, "##{category.path}"
      - &amp;lt; at &amp;gt;competitors.each do |category_path, competitors|
        .accordion-body.table.collapse.in{:id =&amp;gt; "#{category_path}"}
          %table.accordion-inner
            %thead
              %tr
                %th= "Project"
                %th= "Description"
                %th= "Watchers"
                %th= "Forks"
            %tbody
              - competitors.each do |competitor|
                %tr
                  %td
                    = link_to "#{competitor["html_url"]}".sub( "https:\/\/github.com\/", "" ), "#{competitor["html_url"]}"
                  %td
                    %span »
                    = competitor["description"]
                  %td
                    %span.badge.badge-info= competitor["watchers"]
                  %td
                    %span.badge.badge-warning= competitor["forks"]

I need css class .accordion-group, to contain both .accordion-heading ( 
which is inside the &amp;lt; at &amp;gt;categories.each loop ) and .accordion-body (which is 
inside the other loop: &amp;lt; at &amp;gt;competitors.each loop). 

Note the two .each ruby loops, are at the same "node level" in haml, while 
their css classes .accordion-heading and .accordion-body have to be into 
.accordion-group css class container.

The resoulting html which I need, is like the following:

&amp;lt;div class="accordion-group"&amp;gt;
  &amp;lt;div class="accordion-heading"&amp;gt;
  &amp;lt;div class="accordion-body in collapse" id="collapse_id"&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class="accordion-group"&amp;gt;
  &amp;lt;div class="accordion-heading"&amp;gt;
  &amp;lt;div class="accordion-body in collapse" id="collapse_id"&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class="accordion-group"&amp;gt;
  &amp;lt;div class="accordion-heading"&amp;gt;
  &amp;lt;div class="accordion-body in collapse" id="collapse_id"&amp;gt;
&amp;lt;/div&amp;gt;
...

... while I currently get this wrong html code :

&amp;lt;div class="accordion-group"&amp;gt;
  &amp;lt;div class="accordion-heading"&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class="accordion-group"&amp;gt;
  &amp;lt;div class="accordion-heading"&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class="accordion-group"&amp;gt;
  &amp;lt;div class="accordion-heading"&amp;gt;
&amp;lt;/div&amp;gt;
...
&amp;lt;div class="accordion-body in collapse" id="collapse_id"&amp;gt;
&amp;lt;div class="accordion-body in collapse" id="collapse_id"&amp;gt;
&amp;lt;div class="accordion-body in collapse" id="collapse_id"&amp;gt;
...

I cannot find the right way for indent haml ...

&lt;/pre&gt;</description>
    <dc:creator>Luca G. Soave</dc:creator>
    <dc:date>2012-05-20T15:42:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8118">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8118</link>
    <description>&lt;pre&gt;I originally wanted to simply retarget haml so that it generated
javascript templates rather than invoking the Ruby interpreter. Just
as Hampton mentions, the canonical way to output a variable would be.

%span= username

In the current implementation, the result of compiling this would be
something like:
&amp;lt;span&amp;gt;duncan&amp;lt;/span&amp;gt;

Retargeted, I imagined haml outputting something like this instead:

&amp;lt;span&amp;gt;{{username}}&amp;lt;/span&amp;gt;

But I found that I still needed and wanted access to pieces of the
Ruby environment like configuration values, url-generation methods,
and markup-generating methods like link_to. Faced with the trade-off,
I elected to extend the semantics of haml to make it easy to generate
the kinds of simple expressions in wanted in my client-side templates
while continuing to express myself using the elegant style haml
brought to the Ruby in my templates.

Right now, in order to generate simple mustache conditional I have to
jump through a few hoops.

In an ideal world I'd write:
%p
  {{#sunny}}
    My kind of weather

But mustache ain't haml, so I have to close the block myself. However,
because of haml's indentation rules, I can't just write this:

%p
  {{#sunny}}
    My kind of weather
  {{/sunny}}

So I have a couple of options. I can either write this:

%p
  :text
    {{#sunny}}
      My kind of weather
    {{/sunny}}

Or this:

%p
  {{#sunny}}My kind of weather{{/sunny}}

I wanted haml's indentation awareness to make the loops and
conditionals in my templates feel like coffeescript, and like haml
itself, without having to give up (read, change or modify) the bits of
template I'd written that relied on Ruby.

As far as the specific sigils I introduced, I knew I wanted more
control over the generated output than I would get targeting mustache
which can do a number of different things when it encounters a sigil
like {{#, such as performing a conditional check, invoking a function,
or looping over a collection of values. Instead, I had
explicitly-specified output for the specific pieces of functionality I
wanted to allow the client-side template access to.

I never opened a pull request for this because I never believed it was
something that belonged in haml core. I feel the first approach was
likely to get bound up in painful compromises trying to effectively
translate Ruby to JavaScript/template dialect, and my approach changes
the semantics of haml in a backwards-incompatible way.

On Tue, Apr 24, 2012 at 4:05 PM, Hampton &amp;lt;hcatlin-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Duncan Beevers</dc:creator>
    <dc:date>2012-04-25T12:22:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8117">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8117</link>
    <description>&lt;pre&gt;Thanks for chiming in Hampton:

I'm not sure we (the for-delimiter folks) are explaining ourselves very 
well. First, I think we more or less agree that the best delimiter would be 
the hat character "^". The {{_}} simply remained the title of the first 
email, even though we agree it doesn't fit the bill.

The second question that you raised is much closer to our concerns (Duncan, 
I hope I'm not overstepping by saying 'we').

you were looking for...

That's precisely what we are trying to do. Here's a quick example:

%h1 {{ MyJsVar.thatIsPlainText }}

On the client side, the haml would resolve to:

&amp;lt;h1&amp;gt;{{ MyJsVar.thatIsPlainText }}&amp;lt;/h1&amp;gt;

This already works, and *haml does not need to change to handle this case*...the 
template is just plain text that gets rendered out. But something a little 
more complex, like 'block' templates, would need some additions:

^if myVar &amp;gt; yourVar
  %h1 {{ myVar }}
  ^else                                  # I always forget whether we 
should indent the 'else' in regular haml.
    %h2 {{ yourVar }}

The above might resolve to the following in Handlebars:

{{#if myVar &amp;gt; yourVar }}
  &amp;lt;h1&amp;gt; {{ myVar }} &amp;lt;/h1&amp;gt;
{{#else}}
  &amp;lt;h2&amp;gt; {{ yourVar }} &amp;lt;/h2&amp;gt;
{{/if}}

And it would look like this with Ejs:

&amp;lt;% if( myVar &amp;gt; yourVar ) { %&amp;gt;
  &amp;lt;h1&amp;gt; &amp;lt;%= myVar %&amp;gt; &amp;lt;/h1&amp;gt;
&amp;lt;% } else { %&amp;gt;
  &amp;lt;h2&amp;gt; &amp;lt;%= yourVar %&amp;gt; &amp;lt;/h2&amp;gt;
&amp;lt;% } %&amp;gt;

The advantage is that people can keep the indentation, succinctness, and (I 
would say) semantic meaning provided by haml, to write client-side 
templates. I'll try and refrain myself from pestering you with this idea 
any further...just wanted to make sure we are on the same page before you 
decide it really doesn't fit. I'd be happy to answer any more questions 
though.

Cheers,
Bernie

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-25T02:30:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8116">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8116</link>
    <description>&lt;pre&gt;I'd have to say that I don't clearly understand why we'd use
this delimiter? It would
break existing code... what if that appeared naturally in your Haml?

The recommended way is either.

.span #{myvar}
.span= myvar

I have no personal problem with {{_}}, but what does it have that is so
much better than #{_} that
would be useful for these purposes?

Now, there is a bigger question being breached here, which is Haml's
relationship to client-side
scripts... I have to say I have mixed feelings on this topic in a general
sense. Seems like Haml
would be a bad fit... unless you used Haml to *generate* some JS that was
the proper template
you were looking for. But, structured, semantic html is something that is
already implicit in well
defined JS data structures... aka,

{name: {first_name: "hampton", last_name: "catlin"}}

can easily be converted to

&amp;lt;div class="name"&amp;gt;&amp;lt;div class="first"&amp;gt;hampton&amp;lt;/div&amp;gt;.... blah, blah i hate
typing, but you get it

I'm not sure how much advantage Haml gives in a data=&amp;gt;template
transformation which is the
primary usage of Moustache&amp;amp;co.

Haml focuses on document layout and structure. Which does have some
overlap, but not enough
in my mind.

I do have some thoughts recently on things I want to see get added to Haml,
but I'd have to say this isn't
one of them.

-hampton.

On Tue, Apr 24, 2012 at 3:53 PM, Bernie &amp;lt;btelles-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Hampton</dc:creator>
    <dc:date>2012-04-24T21:05:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8115">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8115</link>
    <description>&lt;pre&gt;Jordan, I'm not sure I understand...isn't that just the Ruby way to do the 
same thing? How would that look on the client side?

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-24T20:53:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8114">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8114</link>
    <description>&lt;pre&gt;
At the same time it's a good idea it's a bad idea.  You can already do:

%table
  %tbody
    -MyApp.MyArray.each
      %tr
        %td=some_value
   %tfood
     %tr
       %td Some footer content

&lt;/pre&gt;</description>
    <dc:creator>Jordon Bedwell</dc:creator>
    <dc:date>2012-04-22T09:27:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8113">
    <title>Gedit syntax files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8113</link>
    <description>&lt;pre&gt;Hi,
Have just tried to download the files for sass editing on Gedit from
here, The rails.xml file if full of javascript and the zip file fails
to extract. Have they been compromised?

Have download the old files from riznlog.com to try.

cheers

Dave Hodson

&lt;/pre&gt;</description>
    <dc:creator>r.dave.hodson-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-04-22T12:47:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8112">
    <title>Re: Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8112</link>
    <description>&lt;pre&gt;Great! I've started (slowly) extracting ejs-specific stuff in the 
javascript_support of my haml repo (http://github.com/btelles/haml.git)
Can't guarantee that this'll be done anytime soon, but I'll give it a try.

Maintainers of HAML, if I submit a pull request, would you be willing to 
pull it in?

Bernie

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-24T04:45:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8111">
    <title>Re: Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8111</link>
    <description>&lt;pre&gt;Feel free to crib or gut the haml-ejs work as you see fit.

On Sun, Apr 22, 2012 at 10:13 PM, Bernie &amp;lt;btelles-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Duncan Beevers</dc:creator>
    <dc:date>2012-04-23T03:21:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8110">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8110</link>
    <description>&lt;pre&gt;Upon more thinking, using the "^" as a delimiter may be exactly what we 
need, with the caveat that users might want to specify in a configuration 
option, which delimiters to use. For example, a user might pick from [:ejs, 
:handlebars, :mustache,...].

On Saturday, April 21, 2012 10:40:05 AM UTC-7, Bernie wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-23T03:13:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8109">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8109</link>
    <description>&lt;pre&gt;Thanks for the thoughtful reply, Duncan. You had a lot of questions in 
there, and I'll try to answer most of them. We, the developers at Wildfire 
Interactive have discussed most of those concerns, and I think you and I 
are on the same page.

One of the main goals of adding JS delimiter support is that we would be 
able to keep the semantic significance of indentation. Hamlbars has 
helpers, but block expressions such as 'each' cannot take nested haml 
blocks. This may be an implementation detail with Hamlbars that could be 
amended, but it's just not there yet, and we think it's an important 
missing feature.

I like the implementation that you suggested whereby using a '^' character 
disassociates the javascriptiness of other delimiters (such as {{ or {%) in 
a similar fashion to that of the '%' character with open angle brackets. 
Having said that, I'm not quite sure where that fits in the scheme of 
things because I am not TOO familiar with ejs, but it looks so similar to 
erb that I'm afraid people will be confused by the output, whereas some of 
the other delimiters out there look javascripty by their very nature (curly 
braces == javascript ?).

As far as humans having to parse through 3 different languages...keep in 
mind that no one is obligated to use these delimiters, just as much as no 
one is obligated to use the Textile or Markdown filters. This is just a 
tool in the belt that could make writing JavaScript templates as easy as 
writing haml/ruby templates.

If anyone else has any input, I think this may turn out to be an important 
topic,...please chime in :-)

Cheers,
Bernie


On Sunday, April 22, 2012 10:10:49 AM UTC-7, Duncan Beevers wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-22T19:17:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8108">
    <title>Re: Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8108</link>
    <description>&lt;pre&gt;There have been a number of approaches to help make it simpler to use
haml for client-side templates. One popular implementation is hamlbars
https://github.com/jamesotron/hamlbars which provides some helper
methods, and my own academic experiments in extending haml in a
similar fashion here: https://github.com/duncanbeevers/haml-ejs

That said, many client-side templating languages use different or
customizable delimiters, and support different subsets of javascript
within the templates, from full-js-interpretation all the way down to
only-top-level-properties-of-a-single-data-object, and extending haml
to deal with all of these is pretty much guaranteed to only serve a
subset of the needs programmers will have down the line.

haml itself is already a member of the school of templating languages
that provide access to the full functionality of the ruby interpreter
within the template. Adding extra delimiters means a human looking
over a templates needs to mentally parse two to three languages just
to figure out what's going on.

Is haml the way forward? Should it be re-plumbed to make adding custom
delimiters part of its public API? Should it embrace generation of
client-side templates and include first-class support for this new
family of consumers?

I don't know. So far, using haml for these purposes has been a mixed
bag. The results have been great, but the friction on the way has not
been pleasant.

On Sat, Apr 21, 2012 at 12:40 PM, Bernie &amp;lt;btelles-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Duncan Beevers</dc:creator>
    <dc:date>2012-04-22T17:10:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8107">
    <title>Re: How to insert a javascript block in the %head , containing erb</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8107</link>
    <description>&lt;pre&gt;%head
  :javascript
    $(function() {
        yield :document_ready
    });

The above was produced by using the html2haml
&amp;lt;http://html2haml.heroku.com/&amp;gt;online tool.

On 22 April 2012 05:33, kadoudal &amp;lt;kadoudal-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Ken Burgett</dc:creator>
    <dc:date>2012-04-22T13:59:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8106">
    <title>How to insert a javascript block in the %head , containing  erb</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8106</link>
    <description>&lt;pre&gt;I am trying to insert this block  ( which is inning fine in an
application.html.erb

   &amp;lt;head&amp;gt;
       &amp;lt;script type="text/javascript"&amp;gt;
            $(function() {
               &amp;lt;%= yield :document_ready %&amp;gt;
            });
      &amp;lt;/script&amp;gt;
   &amp;lt;/head&amp;gt;

I tried :

    %head
        :javascript
             = yield :document_ready


    %head
        :javascript
             '&amp;lt;%= yield :document_ready %&amp;gt;'

thanks for feedback

but no way , the yield :document_ready  is never executer

&lt;/pre&gt;</description>
    <dc:creator>kadoudal</dc:creator>
    <dc:date>2012-04-22T12:33:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8105">
    <title>Is there a good resource for learning Haml architecture, code structure?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8105</link>
    <description>&lt;pre&gt;Hi peeps,
I'd like to play with the Haml library a bit (perhaps add support for
handlebars delimeters "{{}}", but haven't been able to find a good
source that explains the structure of the Haml code base. Anyone know
where one might find that?

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-21T16:53:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8104">
    <title>Would people be interested if I added {{}} delimeters?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8104</link>
    <description>&lt;pre&gt;Just want to make sure I don't use time that could be spent somewhere
else. Here's the idea:

Many JS templating languages appear to use the "{{ some_content }}"
strategy for delimiting content, and Mustache and Handlebars appear to
be the most popular among those lang's.

Since Haml appears to not have an easy way to add custom delimeters
(parsing occurs all the way in the parser.rb file), would it make
sense to add these "{{" delimeters directly to haml?

The end result would be something like this:

%table
  %tbody
    {{# each MyApp.MyArray
      %tr
        %td {{ someValue }}
  %tfoot
    %tr
      %td Some footer content

Thoughts, concerns?

&lt;/pre&gt;</description>
    <dc:creator>Bernie</dc:creator>
    <dc:date>2012-04-21T17:40:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8103">
    <title>Re: single quotes nested in double quotes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8103</link>
    <description>&lt;pre&gt;I figured out this is in fact a problem of haml_assets 0.1.0. It seems to 
work in regular RoR as expected.

Op vrijdag 23 maart 2012 11:53:20 UTC+1 schreef bert bruynooghe het 
volgende:

&lt;/pre&gt;</description>
    <dc:creator>bert bruynooghe</dc:creator>
    <dc:date>2012-03-30T09:29:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8102">
    <title>Re: Re: single quotes nested in double quotes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8102</link>
    <description>&lt;pre&gt;Sorry, I forgot the semicolumn in the example I posted. Anyway, I got
the same result, it still produces:
&amp;lt;div data-bind="attr: { " data-something': somevalue }'&amp;gt;&amp;lt;/div&amp;gt;

(If I copy and paste directly from  Chrome, I even got:
&amp;lt;div data-bind="attr: { " data-something':="" somevalue="" }'=""&amp;gt;&amp;lt;/div&amp;gt;,
but I suspect this to be a Chrome issue.)

FYI: I am doing this from a Ruby (1.9.3) on Rail (3.2.2) project, using
haml_assets (0.1.0).

Kind regards,
Bert Bruynooghe.


On Mon, Mar 26, 2012 at 9:36 AM, bert bruynooghe
&amp;lt;bert.bruynooghe-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>bert bruynooghe</dc:creator>
    <dc:date>2012-03-26T07:39:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8101">
    <title>Re: single quotes nested in double quotes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8101</link>
    <description>&lt;pre&gt;did you try :

%div{:'data-bind' =&amp;gt; "attr: { 'data-something': someValue }"}

On Mar 23, 12:53 pm, bert bruynooghe &amp;lt;bert.bruynoo...-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
wrote:

&lt;/pre&gt;</description>
    <dc:creator>kadoudal</dc:creator>
    <dc:date>2012-03-25T17:11:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8100">
    <title>single quotes nested in double quotes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.rails.haml/8100</link>
    <description>&lt;pre&gt;How do I produce HAML for this:
&amp;lt;div data-bind="attr: { 'data-something': someValue }"&amp;gt;...&amp;lt;/div&amp;gt;

Next line replaces all quotes by double quotes, rendering the result
unusable:
%div{'data-bind' =&amp;gt; "attr{'data-something' : someValue}"}

Kind regards,
Bert Bruynooghe.

&lt;/pre&gt;</description>
    <dc:creator>bert bruynooghe</dc:creator>
    <dc:date>2012-03-23T10:53:20</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.rails.haml">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.rails.haml</link>
  </textinput>
</rdf:RDF>

