You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en/guide/install/index.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,5 @@
1
1
# Install
2
2
3
-
::: tip
4
-
In the previous article, we briefly and quickly understood the use of Mettle, so in this article we will explain in detail the installation methods of Mettle.
Copy file name to clipboardExpand all lines: doc/en/guide/started/index.md
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,13 @@ Mettle is a JavaScript library for building user interfaces.
18
18
19
19
-**Lightweight:** The compressed file size is less than **12k**. In addition, you can choose [different types](https://www.jsdelivr.com/package/npm/mettle?tab=files&path=dist) of files according to different application scenarios.
20
20
21
-
## ES Module
21
+
## Quick Start
22
22
23
-
Most modern browsers already support ES modules, so we can use Mettle through CDN and ES modules like this:
23
+
To quickly experience Mettle, you can try one of the following two methods.
24
24
25
-
::: warning
26
-
If you open the above index.html directly in the browser, you will find that it throws an error because ES modules cannot work through the `file://` protocol. In order for this to work, you need to use a local HTTP server to serve index.html via the `http://` protocol.
27
-
:::
25
+
### Global Build Version
26
+
27
+
All top-level APIs in this version are exposed as properties on the global Mettle object.
28
28
29
29
```html
30
30
<!DOCTYPE html>
@@ -34,11 +34,9 @@ If you open the above index.html directly in the browser, you will find that it
0 commit comments