This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns vix.views.feed | |
(:require [vix.core :as core] | |
[vix.document :as document] | |
[vix.util :as util] | |
[soy :as soy] | |
[vix.templates.feed :as tpl] | |
[goog.events :as events] | |
[goog.dom :as dom])) | |
(defn display-document-list [main-el xhr e] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def h (atom nil)) | |
(defn routes [uri-path] | |
(compare-and-set! h nil (new goog.history.Html5History)) | |
(cond | |
(re-matches #"^/admin/[^/]+/new$" uri-path) (editor/start :new uri-path) | |
(re-matches #"^/admin/[^/]+/edit.+" uri-path) (editor/start :edit uri-path) | |
(re-matches #"^/admin/[^/]+/overview$" uri-path) (feed/list-documents uri-path))) |
NewerOlder