GithubHelp home page GithubHelp logo

pjackson3 / vident Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 315 KB

A component library for jQuery

License: Other

JavaScript 23.11% CSS 6.25% HTML 70.64%
jquery mustache jquery-plugin mustache-js mustache-templates mustache-templating mustache-implementations page components component-library

vident's Introduction

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

vident's People

Contributors

pjackson3 avatar

Stargazers

 avatar

Watchers

 avatar

vident's Issues

virtual dom

It would be nice for this package to have a virtual dom. It would help it compete with other frameworks.

documentation

There is a significant lack of documentation. Documentation is necessary so that new contributors can easily see how things work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.