docs
This commit is contained in:
parent
6b9720ed72
commit
2718fec16b
|
@ -1,2 +1,2 @@
|
|||
(defn foo []
|
||||
(println :foo))
|
||||
(defn my-alert2 []
|
||||
(js/alert "My alert 2!"))
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
<body>
|
||||
<button onclick="user.myAlert()">
|
||||
Click me
|
||||
Click me!
|
||||
</button>
|
||||
</body>
|
||||
</pre>
|
||||
|
@ -63,6 +63,14 @@
|
|||
Click me
|
||||
</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>
|
||||
|
||||
To enable <a href="https://github.com/reagent-project/reagent">reagent</a>,
|
||||
|
|
Loading…
Reference in a new issue