docs
This commit is contained in:
parent
6b9720ed72
commit
2718fec16b
|
@ -1,2 +1,2 @@
|
||||||
(defn foo []
|
(defn my-alert2 []
|
||||||
(println :foo))
|
(js/alert "My alert 2!"))
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<button onclick="user.myAlert()">
|
<button onclick="user.myAlert()">
|
||||||
Click me
|
Click me!
|
||||||
</button>
|
</button>
|
||||||
</body>
|
</body>
|
||||||
</pre>
|
</pre>
|
||||||
|
@ -63,6 +63,14 @@
|
||||||
Click me
|
Click me
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<h2><a href="#src">Source from file</a></h2>
|
||||||
|
|
||||||
|
When you have a file on your server, say <tt>cljs/script.cljs</tt>, you can load it using the <tt>src</tt> attribute:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<script src="cljs/script.cljs" type="application/x-sci"></script>
|
||||||
|
</pre>
|
||||||
|
|
||||||
<h2><a href="#reagent">Reagent plugin<a/></h2>
|
<h2><a href="#reagent">Reagent plugin<a/></h2>
|
||||||
|
|
||||||
To enable <a href="https://github.com/reagent-project/reagent">reagent</a>,
|
To enable <a href="https://github.com/reagent-project/reagent">reagent</a>,
|
||||||
|
|
Loading…
Reference in a new issue