jwilder / dockerize

Utility to simplify running applications in docker containers
MIT License
5.01k stars 414 forks source link

dockerize default function doesn't work with single quotes. #167

Open Saurabh-16 opened 3 years ago

Saurabh-16 commented 3 years ago

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' }}