Sha256: 5d358596f5ccfa93f07a84fd7e5cf206216ab9e98079cebac963293b79eff670

Contents?: true

Size: 509 Bytes

Versions: 28

Compression:

Stored size: 509 Bytes

Contents

# @author Mike Bland (michael.bland@gsa.gov)

require 'jekyll/tags/include'
require 'liquid'

module GuidesStyle18F
  class IncludeTag < ::Jekyll::Tags::IncludeTag
    ::Liquid::Template.register_tag 'guides_style_18f_include', self

    def initialize(_tag_name, _name, _tokens)
      super
      @includes_dir = File.join File.dirname(__FILE__), 'includes'
    end

    def tag_includes_dir(*_context)
      includes_dir
    end

    def resolved_includes_dir(_context)
      includes_dir
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
guides_style_18f-1.0.6 lib/guides_style_18f/includes.rb
guides_style_18f-1.0.4 lib/guides_style_18f/includes.rb
guides_style_18f-1.0.3 lib/guides_style_18f/includes.rb
guides_style_18f-1.0.2 lib/guides_style_18f/includes.rb
guides_style_18f-1.0.1 lib/guides_style_18f/includes.rb
guides_style_18f-1.0.0 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.9 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.8 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.7 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.6 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.5 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.4 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.3 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.2 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.1 lib/guides_style_18f/includes.rb
guides_style_18f-0.4.0 lib/guides_style_18f/includes.rb
guides_style_18f-0.3.0 lib/guides_style_18f/includes.rb
guides_style_18f-0.2.0 lib/guides_style_18f/includes.rb
guides_style_18f-0.1.15 lib/guides_style_18f/includes.rb
guides_style_18f-0.1.14 lib/guides_style_18f/includes.rb