pledbrook / lazybones

A simple project creation tool that uses packaged project templates.
Apache License 2.0
614 stars 102 forks source link

Possible to ignore certain variables? #191

Open bitbythecron opened 5 years ago

bitbythecron commented 5 years ago

Any recommendations/hacks/workaround for when the post-templated file needs to have ${...}-style tokens in it that should be ignored by lazybones?

For example, a sample application.yml file for a Spring Boot app:

logging:
  config: 'logback.groovy'
${appname}:
  configWaitForAnswerMillis: ${configTime}

Say I want lazybones to replace ${appname} with the name of the app I'm generating, but I want lazybones to ignore ${configTime} so that the resultant YAML file might look like:

logging:
  config: 'logback.groovy'
myapp:
  configWaitForAnswerMillis: ${configTime}

Any suggestions here? Thanks!