1.9.0 • Published 5 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.gitWhich 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 theStrviewglobal.
- For direct use via
License
Copyright (c) 2021-present, maomincoding
1.9.0
5 years ago
1.8.0
5 years ago
1.7.8
5 years ago
1.7.7
5 years ago
1.7.6
5 years ago
1.7.3
5 years ago
1.7.2
5 years ago
1.7.1
5 years ago
1.7.0
5 years ago
1.6.7
5 years ago
1.7.5
5 years ago
1.6.6
5 years ago
1.6.2
5 years ago
1.6.1
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.6.5
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago