penpot/src/uxbox/main/ui/navigation.cljs
Andrey Antukh 929a0a84da
Restructure the source directory tree.
In order to provide space for other applications
that shares source with the main app.
2016-06-14 17:39:44 +03:00

12 lines
370 B
Clojure

(ns uxbox.main.ui.navigation
(:require [sablono.core :as html :refer-macros [html]]
[goog.events :as events]
[uxbox.util.dom :as dom]))
(defn link
"Given an href and a component, return a link component that will navigate
to the given URI withour reloading the page."
[href component]
(html
[:a {:href (str "/#" href)} component]))