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.5.0 lib/hamlit/compilers/comment.rb
hamlit-1.4.7 lib/hamlit/compilers/comment.rb
hamlit-1.4.6 lib/hamlit/compilers/comment.rb
hamlit-1.4.5 lib/hamlit/compilers/comment.rb
hamlit-1.4.3 lib/hamlit/compilers/comment.rb
hamlit-1.4.2 lib/hamlit/compilers/comment.rb
hamlit-1.4.1 lib/hamlit/compilers/comment.rb
hamlit-1.3.2 lib/hamlit/compilers/comment.rb
hamlit-1.3.1 lib/hamlit/compilers/comment.rb
hamlit-1.3.0 lib/hamlit/compilers/comment.rb
hamlit-1.2.1 lib/hamlit/compilers/comment.rb
hamlit-1.2.0 lib/hamlit/compilers/comment.rb
hamlit-1.1.1 lib/hamlit/compilers/comment.rb
hamlit-1.1.0 lib/hamlit/compilers/comment.rb
hamlit-1.0.0 lib/hamlit/compilers/comment.rb
hamlit-0.6.2 lib/hamlit/compilers/comment.rb
hamlit-0.6.1 lib/hamlit/compilers/comment.rb
hamlit-0.6.0 lib/hamlit/compilers/comment.rb
hamlit-0.5.3 lib/hamlit/compilers/comment.rb
hamlit-0.5.2 lib/hamlit/compilers/comment.rb