Skip to content

Instantly share code, notes, and snippets.

@mattbierner
Created August 1, 2012 04:27
Show Gist options
  • Save mattbierner/3223669 to your computer and use it in GitHub Desktop.
Save mattbierner/3223669 to your computer and use it in GitHub Desktop.
Overview of SSF
ssf.format("Hello @", "world") -> "Hello world"
// Formatting from an object.
ssf.format("Member['a']:@a Member['c']['d']:@c.d", {'a':1, 'c': {'d': 2}})
-> "Member['a']:1 Member['c']['d']:2"
// Formatting from an array.
ssf.format("Array[0]:@0 Array[1]:@1", ['A', 3]) -> "Array[0]:A Array[1]:3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment