Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@isaacs
Forked from jed/fab.template.js
Created April 29, 2010 00:10
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 isaacs/382936 to your computer and use it in GitHub Desktop.
Save isaacs/382936 to your computer and use it in GitHub Desktop.
// this is an example of what the first pass at native (fab) templates will look like:
var fab = require("fab")
, listen = fab.listen
( 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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment