package HexGrid::Dynamic; use v5.30; use Carp; use Data::Dumper; use feature "signatures"; no warnings "experimental::signatures"; $HexGrid::Dynamic::click_pin = <Show coordinates EOS sub render_html($svg, $options = undef) { my $document = ""; $document .= "\n\n"; if($options) { if (ref $options eq 'HASH') { $document .= "\n\n"; $document .= $HexGrid::Dynamic::coords_toggler if $options->{toggle_coords}; } else { carp("Options passed to HexGrid::Dynamic::render_html must be a hash ref"); return; } } $document .= "\n" . $svg; $document .= "\n\n"; return $document; } 1;