Skip to content

Widget base classes for Spine Controllers+Models rendered through Maquette views

Notifications You must be signed in to change notification settings

nextorigin/maquette-spine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

maquette-spine

Dependency Status devDependency Status Downloads

Widget base classes for Spine Controllers+Models rendered through Maquette views

NPM

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

class Filter extends Spine.Model
  @configure "Filter",
    "type",
    "value"
li(class="filter #{type}" id="filter-#{id}" key=id)
  h6 #{type}:
    span.value= value
  button.icon.delete(title="delete") Â
ul!= filters()
Controller
ListController = require "maquette-spine/controllers/list"


class ExampleController extends ListController
  constructor: (options) ->
    jQuery.extend options,
      Store:       require "../models/filter"
      view:        require "../views/filters"
      itemView:    require "../views/filter"

    super

License

MIT

About

Widget base classes for Spine Controllers+Models rendered through Maquette views

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published