Skip to content

Glavin001/Front-Wheel.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front-Wheel.js

Front-end templating with Handlebars.


Usage

<script type="text/x-handlebars-template"
  data-tag="div" data-model-type="json" 
  data-model="{'message':'Hello World!'}">
Message: {{message}}
</script>

Options

data-tag

Replaces the script tag with this tag. Default is div.

data-model-type

The type of the model, for knowing how to retrieve it. See below for more details.

data-model

The model is the Handlebars' context.

data-update-interval

Reload the model at an interval.

Model Types

json (Default)

var context = JSON.parse($el.attr('data-model'));

ajax

Coming soon.

About

Front-end MVC templating in the DOM with Handlebarsjs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors