Sha256: aa12dcef546d56e4c753123ef8329430f2ad2ed70863ffd844ee7a8276c71dd2

Contents?: true

Size: 326 Bytes

Versions: 55

Compression:

Stored size: 326 Bytes

Contents

module Hamlit
  module Compilers
    module Comment
      def on_haml_comment(condition, exps)
        content = [:multi]
        content << [:static, "#{condition}>\n"]
        content += exps.map { |exp| compile(exp) }
        content << [:static, "<![endif]"]
        [:html, :comment, content]
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
hamlit-1.7.2 lib/hamlit/compilers/comment.rb
hamlit-1.7.1 lib/hamlit/compilers/comment.rb
hamlit-1.7.0 lib/hamlit/compilers/comment.rb
hamlit-1.6.7 lib/hamlit/compilers/comment.rb
hamlit-1.6.6 lib/hamlit/compilers/comment.rb
hamlit-1.6.5 lib/hamlit/compilers/comment.rb
hamlit-1.6.4 lib/hamlit/compilers/comment.rb
hamlit-1.6.3 lib/hamlit/compilers/comment.rb
hamlit-1.6.2 lib/hamlit/compilers/comment.rb
hamlit-1.6.1 lib/hamlit/compilers/comment.rb
hamlit-1.6.0 lib/hamlit/compilers/comment.rb
hamlit-1.5.9 lib/hamlit/compilers/comment.rb
hamlit-1.5.8 lib/hamlit/compilers/comment.rb
hamlit-1.5.7 lib/hamlit/compilers/comment.rb
hamlit-1.5.6 lib/hamlit/compilers/comment.rb
hamlit-1.5.5 lib/hamlit/compilers/comment.rb
hamlit-1.5.4 lib/hamlit/compilers/comment.rb
hamlit-1.5.3 lib/hamlit/compilers/comment.rb
hamlit-1.5.2 lib/hamlit/compilers/comment.rb
hamlit-1.5.1 lib/hamlit/compilers/comment.rb