miniview
v1.2.0
Published
Miniature (Spine/Backbone like) views for your client-side app. Respects garbage collection.
Downloads
24
Readme
MiniView
Miniature (Spine/Backbone like) views for your client-side app. Respects garbage collection.
Install
Node, Browserify
- Use:
require('miniview')
- Install:
npm install --save miniview
Ender
- Use:
require('miniview')
- Install:
ender add miniview
Usage
# Import
MiniView = require('miniview').View
# Extend MiniView
class Editview extends MiniView
elements:
'.field-title :input': '$title'
'form': '$form'
events:
'submit form': 'submitForm'
submitForm: (e) =>
alert "Hello #{@$title.val()}""
@
History
Discover the change history by heading on over to the History.md
file.
Contribute
Discover how you can contribute by heading on over to the Contributing.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
- Benjamin Lupton [email protected] (https://github.com/balupton) - view contributions
License
Licensed under the incredibly permissive MIT license
Copyright © 2013+ Bevry Pty Ltd [email protected] (http://bevry.me)