default $var $default - Returns a default value for one that does not exist. {{ default .Env.VERSION "0.1.2" }}
Notice the double quotes around 0.1.2 . If I put these syntax in XML file , dockerize works but XML parsing using simple java library fails because of double quotes.
If dockerize allows default functionality to be honored in single quotes as well , both XML Parsing and dockerize will work and will be helpful in these kind of usecases.
default $var $default - Returns a default value for one that does not exist. {{ default .Env.VERSION '0.1.2' }}
Consider this example from this repo only.
default $var $default - Returns a default value for one that does not exist. {{ default .Env.VERSION "0.1.2" }} Notice the double quotes around 0.1.2 . If I put these syntax in XML file , dockerize works but XML parsing using simple java library fails because of double quotes.
If dockerize allows default functionality to be honored in single quotes as well , both XML Parsing and dockerize will work and will be helpful in these kind of usecases.
default $var $default - Returns a default value for one that does not exist. {{ default .Env.VERSION '0.1.2' }}