Skip to content

Commit 212940f

Browse files
Merge pull request #119 from sogaiu/some-empty-line-population
Add whitespace before some lists
2 parents b4cf994 + 618bb6c commit 212940f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/scittle/presentations/browser_native_slides.clj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
;; You want to create a technical presentation with live code examples.
3838
;; Traditional ClojureScript requires:
39+
3940
;; - shadow-cljs or Figwheel configuration
4041
;; - Build tool setup and dependencies
4142
;; - Webpack or bundler configuration
@@ -75,6 +76,7 @@
7576
;; ## How It Works
7677

7778
;; The flow is straightforward:
79+
7880
;; 1. Load Scittle.js from a CDN
7981
;; 2. Load the Reagent plugin
8082
;; 3. Write ClojureScript in a script tag with type="application/x-scittle"
@@ -109,6 +111,7 @@
109111
;; Thumbnails provide visual context and make navigation instant.
110112
;;
111113
;; **Why thumbnails matter:**
114+
112115
;; - Quick overview of all slides
113116
;; - Jump to any section instantly
114117
;; - See where you are in the presentation
@@ -131,6 +134,7 @@
131134
;; ClojureScript code at runtime, in the browser.
132135
;;
133136
;; **Perfect for:**
137+
134138
;; - Interactive tutorials
135139
;; - Live coding demonstrations
136140
;; - Teaching ClojureScript
@@ -211,6 +215,7 @@
211215
;; ### When to Use Scittle
212216

213217
;; **Perfect for:**
218+
214219
;; - Technical presentations with live demos
215220
;; - Interactive documentation
216221
;; - Quick prototypes and experiments
@@ -221,6 +226,7 @@
221226
;; ### When to Use Shadow-cljs
222227

223228
;; **Better for:**
229+
224230
;; - Production web applications
225231
;; - Large codebases with many dependencies
226232
;; - Performance-critical applications
@@ -251,6 +257,7 @@
251257
;; ### Leverage CDN Libraries
252258

253259
;; Scittle has plugins for popular libraries:
260+
254261
;; - **Reagent** - React wrapper (`scittle.reagent`)
255262
;; - **Re-frame** - State management (`scittle.re-frame`)
256263
;; - **Promesa** - Promises (`scittle.promesa`)
@@ -259,6 +266,7 @@
259266
;; ### Use Browser DevTools
260267

261268
;; Scittle code is debuggable in Chrome/Firefox DevTools:
269+
262270
;; - Set breakpoints in your ClojureScript code
263271
;; - Inspect atoms and state in the console
264272
;; - Use `js/console.log` for quick debugging
@@ -267,6 +275,7 @@
267275
;; ### Performance Considerations
268276

269277
;; **Keep it snappy:**
278+
270279
;; - Minimize initial script size (under 100KB recommended)
271280
;; - Use lazy loading for heavy computations
272281
;; - Cache expensive calculations in atoms
@@ -307,20 +316,23 @@
307316
;; **Problem:** Loading scripts from different domains.
308317
;;
309318
;; **Solution:** Either:
319+
310320
;; - Host all files on the same domain
311321
;; - Use a CORS proxy for development
312322
;; - Configure server to allow CORS headers
313323

314324
;; ### 4. Not All npm Packages Work
315325

316326
;; Scittle can't use npm packages directly. Workarounds:
327+
317328
;; - Use CDN versions (unpkg.com, jsdelivr.com)
318329
;; - Look for Scittle-compatible plugins
319330
;; - Use browser-native APIs instead
320331

321332
;; ### 5. Error Messages
322333

323334
;; Scittle error messages can be cryptic. Tips:
335+
324336
;; - Check browser console for stack traces
325337
;; - Use `(js/console.log)` liberally during development
326338
;; - Test small code snippets in isolation
@@ -383,12 +395,14 @@
383395
;; Just open an HTML file and start coding.
384396
;;
385397
;; **Perfect for:**
398+
386399
;; - Learning ClojureScript
387400
;; - Creating interactive presentations
388401
;; - Building quick prototypes
389402
;; - Teaching and documentation
390403
;;
391404
;; **Remember:**
405+
392406
;; - Use Shadow-cljs for production applications
393407
;; - Use Scittle for everything else
394408
;;

0 commit comments

Comments
 (0)