Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure --missing-key-action on a per-variable basis. #12

Open
josh-padnick opened this issue Sep 8, 2016 · 1 comment
Open

Configure --missing-key-action on a per-variable basis. #12

josh-padnick opened this issue Sep 8, 2016 · 1 comment
Labels
enhancement New feature or request p:queued

Comments

@josh-padnick
Copy link
Contributor

Boilerplate currently supports the --missing-key-action property when using boilerplate on the command line.

The problem is that I want certain values to render blank, while other values that are accidentally blank (or otherwise invalid) to throw an error. But boilerplate makes me choose just one --missing-key-action approach for the entire template generation.

@brikis98
Copy link
Member

brikis98 commented Sep 8, 2016

Distinguishing between an empty string and a missing value is a known TODO. A potential workaround for now is to use some sort of placeholder value (e.g. __EMPTY__) to indicate you want an empty string.

@infraredgirl infraredgirl added p:queued enhancement New feature or request and removed P: Medium labels Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p:queued
Projects
None yet
Development

No branches or pull requests

3 participants