1.9.0 • Published 4 years ago
strview v1.9.0
strview.js
A JS library that can convert strings into view.
How to use?
If you introduce it directly in the production environment.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="app"></div>
<script src="./strview.global.js"></script>
<script>
Strview.createView({
el: "#app",
data: {
msg: 'hello'
},
template: `<h1>{msg}</h1>`,
});
Strview.eventListener('h1', 'click', () => {
Strview.ref().msg = 'world';
});
</script>
</body>
</html>
You can use strviewApp
, a scaffolding tool that will enable you to better understand and use strview.js
. Click the link below to learn more.
https://github.com/maomincoding/strview-app.git
Which dist file to use?
strview.esm.js
- For usage via native ES modules imports (in browser via
<script type="module">
.
- For usage via native ES modules imports (in browser via
strview.global.js
- For direct use via
<script src="...">
in the browser. Exposes theStrview
global.
- For direct use via
License
Copyright (c) 2021-present, maomincoding
1.9.0
4 years ago
1.8.0
4 years ago
1.7.8
4 years ago
1.7.7
4 years ago
1.7.6
4 years ago
1.7.3
4 years ago
1.7.2
4 years ago
1.7.1
4 years ago
1.7.0
4 years ago
1.6.7
4 years ago
1.7.5
4 years ago
1.6.6
4 years ago
1.6.2
4 years ago
1.6.1
4 years ago
1.6.0
4 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.6.5
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago