/miniview

Miniature (Spine/Backbone like) views for your client-side app. Respects garbage collection.

Primary LanguageCoffeeScriptOtherNOASSERTION

MiniView

Build Status NPM version Gittip donate button Flattr donate button PayPayl donate button

Miniature (Spine/Backbone like) views for your client-side app. Respects garbage collection.

Install

  • Use: require('miniview')
  • Install: npm install --save miniview
  • Use: require('miniview')
  • Install: ender add miniview

Usage

# 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()}""
		@

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:

Sponsors

No sponsors yet! Will you be the first?

Gittip donate button Flattr donate button PayPayl donate button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright © 2013+ Bevry Pty Ltd us@bevry.me (http://bevry.me)