Get started with rivets CDN
MIT licensed
Rivets is a lightweight library for declarative, two-way data binding.
Tags:- declarative
- data binding
- templating
- engine
- ui
Stable version
Copied!
How to start using rivets CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with rivets CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/rivets/0.9.6/rivets.min.js"></script>
</head>
<body>
<div data-rivets="template: #template" data-rivets-model="model">
</div>
<script id="template" type="text/html">
<p>Name: <input type="text" data-bind="value: name" /></p>
<p>Age: <input type="number" data-bind="value: age" /></p>
<p>Message: <span data-bind="text: message"></span></p>
</script>
<script>
const model = {
name: 'John Doe',
age: 30,
message: 'Hello, Rivets.js!'
};
</script>
</body>
</html>
Copied!
Copied!
Copied!