Skip to content

Instantly share code, notes, and snippets.

@mikehedman
mikehedman / index.js
Last active August 29, 2015 14:16 — forked from cdaringe/index.js
requirebin sketch
var State = require('ampersand-state');
var MyState = State.extend({
props: {
myDate: {
type: 'date'
}
}
});
@mikehedman
mikehedman / gist:1969ce420e2413226ec3
Last active August 29, 2015 14:12
Pieces of the puzzle for how to use Dust templates with AmpersandJS
// /common/core/ampersand-input-view-dust.js
/**
* Extends the Ampersand InputView class to make it work with Dust templates
*/
/*global dust*/
var InputView = require('ampersand-input-view');
var InputViewDust = InputView.extend({
template: 'includes.formInput',
render: function () {
var self = this;