Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devdays/e1e0f1ba53670fd53fac to your computer and use it in GitHub Desktop.
Save devdays/e1e0f1ba53670fd53fac to your computer and use it in GitHub Desktop.
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