Method: Estatic::Resource#get_locals

Defined in:
lib/estatic/resource.rb

#get_localsObject



10
11
12
13
# File 'lib/estatic/resource.rb', line 10

def get_locals
  locals = Estatic.configuration.locals.detect { |e| e.keys.first == name }&.values&.first || []
  locals.map { |local| [local.keys.first, local.values.first] }.to_h
end