Skip to content

Instantly share code, notes, and snippets.

@burn2delete
Created February 9, 2017 07:03
Show Gist options
  • Save burn2delete/953a9109b32146909dfed17222e5fdbd to your computer and use it in GitHub Desktop.
Save burn2delete/953a9109b32146909dfed17222e5fdbd to your computer and use it in GitHub Desktop.
Hoplon/Bidi Index file
(page "index.html"
(:require [hoplon.bidi]
[app.views :as view]
[app.routing :as routing])
(:require-macros [hoplon.bidi :refer [route-tpl]]))
(html
(head
(html-meta :http-equiv "content-type" :content "text/html; charset=utf-8")
(html-meta :name "viewport" :content "width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0")
(link :rel "shortcut icon" :href "favicon.png"))
(body
(route-tpl routing/routes
:dash (view/dash)
:landing (view/landing)
:login (view/login)
:signup (view/signup)
:missing "404!")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment