0
Fork 0
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:
Andrey Antukh 2016-06-12 13:24:55 +03:00
parent d1a41c78ab
commit cf2a838007
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 3 additions and 4 deletions

View file

@ -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>

View file

@ -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))