Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Single Page App - Sammy Get Verb
this.get('#/compose', function (context) {
context.app.swap('');
context.$element().append('<h1>say hello to?</h1>'
+ '<form action="#/compose" method="post">'
+ '<input type="text" name="to" />'
+ '<input type="submit" name="submit" />'
+ '</form>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment