Class: Jekyll::FragmentBlockBody

Inherits:
Liquid::BlockBody
  • Object
show all
Defined in:
lib/jekyll-dry.rb

Instance Method Summary collapse

Constructor Details

#initializeFragmentBlockBody

Returns a new instance of FragmentBlockBody.



75
76
77
# File 'lib/jekyll-dry.rb', line 75

def initialize
  super
end

Instance Method Details

#whitespace_handler(token, parse_context) ⇒ Object



79
80
81
82
83
84
85
86
# File 'lib/jekyll-dry.rb', line 79

def whitespace_handler(token, parse_context)
  return unless token =~ Jekyll::FragmentGenerator::FragmentSubPattern
  previous_token = @nodelist.last
  if previous_token.is_a? String
    # previous_token.rstrip!
  end
  parse_context.trim_whitespace = true
end