Sha256: 328658c73bbb2e275885b43ffef7e273393c0e7ba72dd8a0659c36c6bae94e8c
Contents?: true
Size: 743 Bytes
Versions: 6
Compression:
Stored size: 743 Bytes
Contents
module Voom module Presenters module Plugins module GoogleMaps module DSLComponents def google_map(**attributes, &block) self << GoogleMap.new(parent: self, **attributes, &block) end end module WebClientComponents def render_google_map(comp, render:, components:, index:) view_dir = File.join(__dir__, 'google_maps') render.call :erb, :google_map, views: view_dir, locals: {comp: comp, components: components, index: index} end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems