feat(dynamic-variables): add dynamic variables to both templates

and macros.
This commit is contained in:
Tienson Qin
2021-02-16 15:29:36 +08:00
parent 55711a3c1c
commit 150953fcb8
6 changed files with 69 additions and 17 deletions

View File

@@ -7,7 +7,13 @@
[cljs-bean.core :as bean]
[frontend.util :as util]
[clojure.string :as string]
[goog.object :as gobj]))
[goog.object :as gobj]
["chrono-node" :as chrono]))
(defn nld-parse
[s]
(when (string? s)
((gobj/get chrono "parseDate") s)))
(defn format
[date]