Skip to content

Commit e856391

Browse files
committed
README update; remove boilerplate clutter
1 parent d4c5a84 commit e856391

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ h1 {
114114

115115
Et voila:
116116

117-
<img src="doc/crystal-vue-example-1.png" width=522/>
117+
<img src="doc/celestite-example-1.png" width=522/>
118118

119119
Ok that's not so exciting. And it's a bit more verbose. But there's more to this, I promise! The key is that number 2 is not just a static ASCII character loaded via HTML -- it's actually a fully reactive element of a live Vue component:
120120

121-
<img src="doc/crystal-vue-example-2a.png" width=522/>
121+
<img src="doc/celestite-example-2a.png" width=522/>
122122

123123
A quick peek at the raw HTML shows our server's doing all the hard work (which is what servers were designed to do) and sending us a fully rendered page that, even if it were more complex, would load quickly and be SEO-friendly:
124124

@@ -218,7 +218,7 @@ Or the Svelte equivalent:
218218

219219
Gives us, as expected:
220220

221-
<img src="doc/crystal-vue-example-2.png" width=522/>
221+
<img src="doc/celestite-example-2.png" width=522/>
222222

223223
And again, this is all being done server-side, the raw HTML tells the same story:
224224

@@ -308,7 +308,7 @@ Or the equivalent in Svelte:
308308

309309
And we see:
310310

311-
<img src="doc/crystal-vue-example-3.png" width=522/>
311+
<img src="doc/celestite-example-3.png" width=522/>
312312

313313
All looking good. Same with the raw HTML:
314314

@@ -383,7 +383,7 @@ When a request comes in, the server will render the component and send down the
383383

384384
In your browser, the javascript bundle (along with Vue) will load and automatically understand that this is server-rendered Vue code. It then "hydrates" the static element and makes it dynamic, as such:
385385

386-
<img src="doc/crystal-vue-example-4.gif" width=522/>
386+
<img src="doc/celestite-example-4.gif" width=522/>
387387

388388
Huzzah! Server-rendered initial view, reactive (hydrated) elements after load, and a rich dynamic (sort of) UI for the user, and all in a single piece of view code. Heaven.
389389

0 commit comments

Comments
 (0)