public
Last active

  • Download Gist
fab.template_comma.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// the upcoming (fab) rewrite is also sympathetic to folks that don't care for parentheses:
 
with ( require( "fab" ) ) fab
 
( listen, 0xFAB
 
, /\//
 
, /1/
, "This is a template with no variables: a unary app"
 
, /2/
, "This is a template with {{1}} variable: a binary app."
, "one"
 
, /3/
, "This is a template with {{1}} variables: a {{2}} app."
, "two"
, "ternary"
 
, /4/
, "You can even {{1}} them!"
, "{{1}} and {{2}}"
, "mix"
, "match"
 
, "Any feedback appreciated: http://twitter.com/{{1}}"
, "jedschmidt"
 
, 404 );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.