Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
backbone/famous strategy
var fs = require('fs');
// create the main context
var mainContext = Engine.createContext();
var $ = require('zepto-browserify').$;
var $template = $(fs.readFileSync( __dirname + '/templates/navbar.html', 'utf8'));
var navbarMod = new Modifier();
var navbarSurface = new Surface({
size: [200, undefined],
content: $template[0],
properties: {
backgroundColor: 'blue'

This comment has been minimized.

Copy link
Owner Author

cj3kim commented Feb 24, 2015

$template.on('click', function () {
alert('you clicked the template');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.