cljs.pprint (#39)
This commit is contained in:
parent
7bf5bc087d
commit
cf65ffaf20
7 changed files with 43 additions and 11 deletions
|
|
@ -7,6 +7,8 @@
|
|||
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
|
||||
<script src="js/scittle.reagent.js" type="application/javascript"></script>
|
||||
<script src="js/scittle.cljs-ajax.js" type="application/javascript"></script>
|
||||
<script src="js/scittle.pprint.js" type="application/javascript"></script>
|
||||
|
||||
<script type="application/x-scittle">
|
||||
(defn my-alert []
|
||||
(js/alert "You clicked!"))
|
||||
|
|
@ -118,6 +120,19 @@
|
|||
Click me!
|
||||
</button>
|
||||
|
||||
<a name="pprint"></a>
|
||||
<h2><a href="#pprint">cljs.pprint plugin</a></h2>
|
||||
|
||||
To enable <a href="https://cljs.github.io/api/cljs.pprint/">cljs-ajax</a>,
|
||||
in addition to <tt>scittle.js</tt>, you need to include <tt>scittle.pprint.js</tt>:
|
||||
|
||||
<pre><code data-type="scittle" data-src="html/cljs-ajax.html" class="html"></code></pre>
|
||||
|
||||
<button onclick="make_request()">
|
||||
Click me!
|
||||
</button>
|
||||
|
||||
|
||||
<a name="repl"></a>
|
||||
<h2><a href="#nrepl">REPL</a></h2>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue