         end (+ next PAGESIZE)
         stop (if (not (or (< next 0) (< count next))) true false)]
     (if stop
-      (m "span.pagelink" nil
+      (nm "span.pagelink"
        [(m "a"
            {:onclick (fn [e]
                        (.preventDefault e)
                        (setpage next))
             :href ""}
            (str pagenum " - " end))])
-      (m "span.pagelink.emptypage" nil "______"))))
+      (nm "span.pagelink.emptypage" "______"))))
 
 (defn pages []
   (let [start (:start db)
         count (count (:data db))]
-    (m "#pages" nil ["Count: " count " " (page start - count) " " (page start + count)])))
+    (nm "#pages" ["Count: " count " " (page start - count) " " (page start + count)])))
 
 (defn ctrl []
   (if (not (:data db nil))

  (js/m tag (clj->js attrs) (clj->js values)))

(defn nm
  "Mithril in Cljs supporting different arguments amounts"
  ([x]
   '("Lone tag"))
  ([x y]
   (if (= (type y) (type []))
     '("Tag with children")
     (if (= (type y) (type {}))
       '("Lone tag with attrs")
       '("Tag with text worthy content, I hope"))))
  ([x y z]
   (if (= (type z) (type []))
     '("Tag with attrs and children")
     '("Tag with attrs and text worthy content, I hope"))))

(defn route_param [param]
  "Get param from route params"

                comment (get item "comment" "")
                time (get item "time" "")
                pos (+ start i)]
              (nm "tr" [(m "td.itemtitle" nil title)
                           (nm "td" (m "a.link" {:href url} "Link"))
                           (nm "td" (if (not(= "" referer)) (m "a.link" {:href referer} "Referer")))
                           (nm "td" (format_time (new js/Date time) DATEFORMAT))
                           (nm "td" comment)
                           (nm "td"
                              [(nm "button.pure-button" {:onclick #(edit item pos)} "Edit")
                               (nm "button.pure-button" {:onclick #(delete pos)} "Remove")])])))
        (if (< PAGESIZE (count data))
          (subvec data start (+ start PAGESIZE))
          data))]))
