maquette-spine
Widget base classes for Spine Controllers+Models rendered through Maquette views
Installation
npm install --save-dev maquette-spine
Usage -- ListController
A helper controller for common usage of maquette-mapper.
Example: el-borracho-ui + gulp-pug-hyperscript
filter.coffee
Model @configure "Filter" "type" "value"
filter.jade
Viewliclass="filter " id="filter-" key=id h6 #type: span.value= value buttonicondeletetitle="delete" Â
filters.jade
ul!= filters
Controller
ListController = require "maquette-spine/controllers/list" : jQueryextend options Store: require "../models/filter" view: require "../views/filters" itemView: require "../views/filter" super
License
MIT