mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
Reimplement app initialization.
Now is done from template instead of global code execution on main namespace.
This commit is contained in:
parent
d1a41c78ab
commit
cf2a838007
2 changed files with 3 additions and 4 deletions
|
@ -12,5 +12,6 @@
|
|||
<section id="lightbox" tabindex="2"></section>
|
||||
<section id="loader" tabindex="3"></section>
|
||||
<script src="{{& jsfile}}"></script>
|
||||
<script>uxbox.main.main()</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,14 +6,12 @@
|
|||
;; Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
||||
|
||||
(ns uxbox.main
|
||||
(:require-macros [uxbox.util.syntax :refer [define-once]])
|
||||
(:require [uxbox.state :as st]
|
||||
[uxbox.rstore :as rs]
|
||||
[uxbox.ui :as ui]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
(define-once :setup
|
||||
(defn ^:export main
|
||||
[]
|
||||
(st/init)
|
||||
(ui/init-routes)
|
||||
(ui/init))
|
||||
|
|
Loading…
Add table
Reference in a new issue