Created
September 28, 2009 16:53
-
-
Save cjse/195558 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
StringTemplater with no tokens | |
- returns blank string if the given string is blank | |
- returns a non-blank string unchanged | |
StringTemplater with one token | |
- replaces token with empty string if no value in context | |
- replaces token with value from context | |
- leaves the rest of the string unchanged | |
StringTemplater with two tokens | |
- replaces each token with the value from the context | |
- replaces with blank string the tokens that have no value in context | |
- replaces tokens that are adjacent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment