module MephistoGoogleMap def google_api_key(hostname) case hostname when 'localhost' google_api_key = 'ABQIAAAADFf6N16aGaILLnA949es1xT2yXp_ZAY8_ufC3CFXhHIE1NvwkxS6z_f9yyE9aeetNEl5OEKHXybZRQ' when '0.0.0.0' google_api_key = 'ABQIAAAADFf6N16aGaILLnA949es1xR-GnEQV2Q1KV0CZ-zB-cw9e0o6BBQIMv3zlT2bLV00ke9MCngUZuuHvQ' when '0.0.0.0:3000' google_api_key = 'ABQIAAAADFf6N16aGaILLnA949es1xQDNUKtWYO0YNsBQklWEm0Tg_LWZBToL2bL5z0BHEk38D-80vdZ4jvZxw' when 'perity.com' google_api_key = 'ABQIAAAADFf6N16aGaILLnA949es1xTznAkNuoY3iRvdUjyj6_ks4WBxJRREx0YjSFVY8JWOqjgwIFIVO_UT-Q' when 'beta.perity.com' google_api_key = 'ABQIAAAADFf6N16aGaILLnA949es1xRH_F8ThYZhehfgzo86B4pyIL832RSXCJIrmgD6X27J2hJzwkV3l13GdA' when 'www.perity.com' google_api_key = 'ABQIAAAADFf6N16aGaILLnA949es1xT3kMsMXC8AbVKGs-SmHAAPvynZ0RRfTC1xPiJ0XXaKw8ziGG0R30Fegw' end google_api_key end def google_map_container(message) html = <
#{message}
EOL html end def google_map_simple(api_key, lat, long) type = 'marker' if !type html = < EOL html end def google_map_marker(api_key, lat, long) type = 'marker' if !type html = < EOL html end def google_map_overlay(api_key, lat, long, message) html = < EOL html end end Liquid::Template.register_filter(MephistoGoogleMap)