Miniature (Spine/Backbone like) views for your client-side app. Respects garbage collection.
- Use:
require('miniview')
- Install:
npm install --save miniview
- Use:
require('miniview')
- Install:
ender add miniview
# Import
MiniView = require('miniview').View
# Extend MiniView
class EditView extends MiniView
el: """
<div class="edit-view">
<form class="edit-form">
<input type="text" class="field-title"></input>
</form>
</div>
"""
elements:
'.field-title :input': '$title'
events:
'submit form.edit-form': 'submitForm'
submitForm: (e) =>
alert "Hello #{@$title.val()}""
@
Discover the change history by heading on over to the History.md
file.
Discover how you can contribute by heading on over to the Contributing.md
file.
These amazing people are maintaining this project:
- Benjamin Lupton b@lupton.cc (https://github.com/balupton)
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
- Benjamin Lupton b@lupton.cc (https://github.com/balupton) - view contributions
Licensed under the incredibly permissive MIT license
Copyright © 2013+ Bevry Pty Ltd us@bevry.me (http://bevry.me)