Sha256: 612f5c0d197b2e013d1d80fccb76319110d3a8414c0ba2559a109e96ec57b0ca

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module Jekyll
  module Slim
    class IncludeTag < Jekyll::Tags::IncludeTag
      def source(file, context)
        content = super
        if file =~ /\.slim\Z/i
          Converter.convert(context.registers[:site].config, content)
        else
          content
        end
      end
    end
  end
end

Liquid::Template.register_tag('slim', Jekyll::Slim::IncludeTag)
Liquid::Template.register_tag('include', Jekyll::Slim::IncludeTag)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-slim-0.10.0 lib/jekyll/slim/include_tag.rb