-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
(ns demoapp.show | ||
(:require | ||
[scratchpad.core :refer [show! clear!]])) | ||
|
||
|
||
(show! [:p "hello, demo!"]) | ||
|
||
|
||
; evaled expression inside the hiccup. | ||
(show! [:p "Multiplication result: " (* 7 7)]) | ||
|
||
; code in highlightjs | ||
(show! ['user/codemirror "(println 5) ; this is code"]) | ||
|
||
; show pinkie tags! | ||
(show! ['user/clock]) | ||
|
||
; show image (in static resource) | ||
(show! [:img {:src "/r/sun.png"}]) |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{:name "scratchpad" | ||
; build time | ||
; build | ||
:lazy false ; we dont have any code, lazy fucks up size report | ||
:cljs-namespace [] | ||
:cljs-ns-bindings {} | ||
:cljs-bindings {} | ||
:pinkie {} | ||
; run time | ||
:clj-require [] | ||
:autoload-cljs-dir ["scratchpad/goldly/lib" | ||
"scratchpad/goldly/page"] | ||
; run | ||
:autoload-cljs-dir ["scratchpad" | ||
"scratchpad/page"] | ||
:autoload-clj-ns [scratchpad.handler]} |
7 changes: 7 additions & 0 deletions
7
src/scratchpad/goldly/page/scratchpad.cljs → src/scratchpad/page/scratchpad.cljs
This file contains 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
5 changes: 4 additions & 1 deletion
5
src/scratchpad/goldly/lib/vizspec.cljs → src/scratchpad/vizspec.cljs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
|
||
(ns scratchpad.vizspec | ||
(:require | ||
[pinkie] | ||
[user :refer [resolve-symbol-sci]])) | ||
|
||
(defn safe-resolve [s] | ||
(try | ||
|