Sha256: a4e69e3179024b81c05e883d61a2b50a765ffabeeb965f6132e73235034fe751

Contents?: true

Size: 795 Bytes

Versions: 7

Compression:

Stored size: 795 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2018 - MIT License
# Encoding: utf-8

require "jekyll"

module Jekyll
  module Assets
    module Plugins
      class FrontMatter
        REGEXP = Jekyll::Document::YAML_FRONT_MATTER_REGEXP
        def call(input)
          {
            data: input[:data].gsub(REGEXP, ""),
          }
        end
      end
    end
  end
end

processor = Jekyll::Assets::Plugins::FrontMatter.new
Sprockets.register_preprocessor "text/sass", processor
Sprockets.register_preprocessor "application/javascript", processor
Sprockets.register_preprocessor "application/ecmascript-6", processor
Sprockets.register_preprocessor "text/coffeescript", processor
Sprockets.register_preprocessor "text/scss", processor
Sprockets.register_preprocessor "text/css", processor

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-assets-3.0.12 lib/jekyll/assets/plugins/frontmatter.rb
jekyll-assets-3.0.11 lib/jekyll/assets/plugins/frontmatter.rb
jekyll-assets-3.0.10 lib/jekyll/assets/plugins/frontmatter.rb
jekyll-assets-3.0.9 lib/jekyll/assets/plugins/frontmatter.rb
jekyll-assets-3.0.8 lib/jekyll/assets/plugins/frontmatter.rb
jekyll-assets-3.0.7 lib/jekyll/assets/plugins/frontmatter.rb
jekyll-assets-3.0.6 lib/jekyll/assets/plugins/frontmatter.rb