easy-view
Create Atom views' DOM with html... like a sane person.
Example
Specify jQuery event handlers using data-bind
attributes in your markup.
<!-- example.html --> A Header This is pretty easy.
When the event is triggered, the handler will be called within the scope of the EasyView.
# Example.coffee EasyView = require 'easy-view'path = require 'path' module.exports = # specify the template template: pathjoin __dirname'./example.html' : consolelog element'was clicked' : consolelog 'mouse is over'element
Usage
Example = require './Example' example = # Call render to append the DOM with event handlers to a container element. examplerendercontainer
Note
This is a beta release, quickly thrown together while trying to develop an Atom package. Please feel free to report bugs in order to make it better...stronger...faster.