Created
March 18, 2013 22:30
-
-
Save hoodja/5191441 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
function render { | |
cat << END_RENDER | |
#begin the "real" content | |
blah $FOO | |
foo $BAR | |
smack $HEAD | |
for $USER | |
#end the "real" content | |
END_RENDER | |
} |
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
#!/bin/bash | |
source variables | |
source file.template | |
render |
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
#These are defaults but can be overridden by a like-named environment variable | |
FOO=${FOO:="Some Value"} | |
BAR=${BAR:="Another Value"} | |
USER=${USER:="Jimbo"} | |
HEAD=${HEAD:="I dunno"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment