Created
August 1, 2012 04:27
-
-
Save mattbierner/3223669 to your computer and use it in GitHub Desktop.
Overview of SSF
This file contains 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
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