Class: Locomotive::Steam::Liquid::Tags::GlobalSection

Inherits:
Section
  • Object
show all
Defined in:
lib/locomotive/steam/liquid/tags/global_section.rb

Constant Summary

Constants inherited from Section

Section::Syntax

Instance Attribute Summary

Attributes inherited from Section

#section_type

Attributes included from Concerns::Attributes

#attributes, #raw_attributes

Instance Method Summary collapse

Methods inherited from Section

#initialize, #render

Constructor Details

This class inherits a constructor from Locomotive::Steam::Liquid::Tags::Section

Instance Method Details

#parse(tokens) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/locomotive/steam/liquid/tags/global_section.rb', line 7

def parse(tokens)
  notify_on_parsing(section_type,
    source:     :site,
    id:         "site-#{section_type}",
    key:        section_type,
    placement:  attributes[:placement]&.to_sym
  )
end