Created
April 28, 2010 22:29
-
-
Save jed/382827 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is an example of what the first pass at native (fab) templates will look like: | |
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 ); |
I'm with (isaacs) too: No with please!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the template app actually creates an n-ary app, where n = the highest variable number + 1.