Skip to content

Instantly share code, notes, and snippets.

@odoe
Created Jan 12, 2015
Embed
What would you like to do?
Sample layout using hiccup with Leaflet lib
(ns mapviewer.views.layout
(:require [hiccup.page :refer [html5 include-css]]
[hiccup.page :refer [include-css include-js]]))
(defn common [& body]
(html5
[:head
[:title "Welcome to mapviewer"]
(include-css "/css/screen.css")
(include-css "http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css")]
[:body body
[:div {:id "map"}]
(include-js "http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js")
(include-js "http://cdn-geoweb.s3.amazonaws.com/esri-leaflet/1.0.0-rc.3/esri-leaflet.js")
(include-js "/js/main.js")
[:script "site.init();"]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment