Removing line code #6785
Unanswered
siganberg
asked this question in
Template authoring
Replies: 2 comments 1 reply
-
Hi @siganberg, I can recommend using https://github.com/dotnet/templating/wiki/Conditions statements for fulfilling this goal. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@siganberg, currently, Template Engine doesn't provide the described functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way in template.json for instructions for removing a line of code if the condition is met? Currently, the only thing I saw is replace which ends up empty line. It works but is not ideal as it looks like there is code missing on the generated code.
For example instruction in
template.json
, this replaces#define with_auth
with an empty line but I rather remove the line instead.Beta Was this translation helpful? Give feedback.
All reactions