Sha256: 6559fe2060fc08b1e8c4d69100785f05aeb9afea7dace529cc874dd4ca39d685

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

require_relative "base_language.rb"
require_relative "common_types/markup_language.rb"

require_relative "../renderers/haml_renderer.rb"

module Docks
  module Languages
    class Haml < Base
      include Common::Markup

      def self.type; Docks::Types::Languages::MARKUP end
      def self.extensions; %w(haml) end

      def helper_markup_for(helper_name, arguments)
        functionize_helper(helper_name, arguments, start_with: "= ")
      end

      def renderer; Docks::Renderers::Haml.new end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 lib/docks/languages/haml_language.rb
docks_app-0.0.2 lib/docks/languages/haml_language.rb
docks_app-0.0.1 lib/docks/languages/haml_language.rb