Created
March 29, 2016 08:49
-
-
Save dsignr/a4cddef90e08881b7db1 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
#http://stackoverflow.com/questions/4150782/using-yaml-with-variables | |
key : 'This is the foobar var : %{foobar}' | |
content = file['key'] | |
modified_content = content % { :foobar => foobar } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment