web_page_state
Version:
Simple straightforward tool to manage webpage state on the client side and hook state to html tags on page without code
14 lines (13 loc) • 426 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div data-ws-show-if="isSignedIn"><p>Welcome <span data-ws-label="user.name"></span></p></div>
<div data-ws-show-if-not="isSignedIn"><p>Sign in to start</p></div>
<!--<script src="build/bundle.js"></script>-->
<script src="https://unpkg.com/web_page_state/build/bundle.min.js"></script>
</body>
</html>