Sha256: a1e16f9c33e94cee42ee15990d5d0256b09c3f83438642ec0804d49c95168524

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

module Tilt

  module MiddlemanBlogTemplate
    def prepare
      @data = data.gsub(/^.*?#{Middleman::Blog::SEPARATOR}/m, '')
      super
    end
  end


  # MARKDOWN

  class MarukuMiddlemanBlogTemplate < MarukuTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register MarukuMiddlemanBlogTemplate, 'markdown', 'mkd', 'md'

  class KramdownMiddlemanBlogTemplate < KramdownTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register KramdownMiddlemanBlogTemplate, 'markdown', 'mkd', 'md'

  class BlueClothMiddlemanBlogTemplate < BlueClothTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register BlueClothMiddlemanBlogTemplate, 'markdown', 'mkd', 'md'

  class RedcarpetMiddlemanBlogTemplate < RedcarpetTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register RedcarpetMiddlemanBlogTemplate, 'markdown', 'mkd', 'md'

  class RDiscountMiddlemanBlogTemplate < RDiscountTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register RDiscountMiddlemanBlogTemplate, 'markdown', 'mkd', 'md'

  # TEXTILE

  class RedClothMiddlemanBlogTemplate < RedClothTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register RedClothMiddlemanBlogTemplate, 'textile'

  # RDOC

  class RDocMiddlemanBlogTemplate < RDocTemplate
    include Tilt::MiddlemanBlogTemplate
  end
  register RDocMiddlemanBlogTemplate, 'rdoc'



end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-blog-0.0.1 lib/middleman-blog/tilt.rb