1.0.2 • Published 5 years ago

vident v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Vident

About

Vident (latin for "they see") is a component library for jQuery. It implements the mustache templating engine. Under the hood, it uses a small client-side router called page. You will not need to interact with page to use this library. The router included wraps around it and should suffice for most purposes.

Contributing

Currently the most needed area is the documentation. Another thing I would like to add in later versions is a virtual DOM (like the ones in React and Angular).

Example

/* index.html */
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="app">
</div>
<script src="path/to/compiled/script.js">
</script>
</body>
</html>
// main.js
import jQuery from "jquery"
import { setup } from "vident"
import template from "./template.mustache"

const $ = setup(jQuery)

const component = $().createComponent({
  template: template
})

$("#app").renderComponent({
  component: component,
  data: {data: "Hello World!"}
})
/* template.mustache */
<h1>{{data}}</h1>

This will render the component onto the div with an id of app

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.0

5 years ago