html5-bootstrap-v3-jst

bootstrapv3 JavaScript Server Templates


Keywords
bootstrap, JST, Mockup, Design Prototype
License
MIT
Install
bower install html5-bootstrap-v3-jst

Documentation

html5-bootstrap-v3-jst

Bootstrapv3 JavaScript Server Templates

Prerequisite

Install

bower package

bower install html5-bootstrap-v3-jst --save

Usage

window.JST // returns all templates
// return jumbotron layout Handlebars compiled function
window.JST.layout.jumbotron
// appends jumbotron layout to body element
window.JST.layout.jumbotron = 'body'

//same as doing the following
elem = document.createElement('div');
elem.innerHTML = JST.layout.jumbotron();
document.querySelector('body').appendChild(elem.innerHTML);

// override content of body with jumbotron layout html
JST.layout.jumbotron = document.querySelector('body')

vertical menu

JST.menus.vertical.render({
  el: '#content',
  elemHash: elemHash(),
  children: [
    {
      icon: 'home',
      linkName: 'Home',
      content: 'Home content goes here'
    },{
      icon: 'info',
      linkName: 'About',
      content: 'About content goes here'
    },{
      icon: 'calendar',
      linkName: 'Calender',
      content: 'Calender content goes here'
    },{
      icon: 'tasks',
      linkName: 'Forms',
      content: 'Forms content goes here'
    }
  ]
})

will generate

Vertical-Menu Screenshot 01

Included with distribution

License

MIT