dotnet-template-samples/15-computed-symbol
Sayed Ibrahim Hashimi d14b7ec708 adding type:project to all template.json files 2017-08-01 08:46:39 -07:00
..
MyProject.Con adding type:project to all template.json files 2017-08-01 08:46:39 -07:00
README.md adding a sample of computed symbol #19 2017-06-23 09:35:28 -07:00

README.md

The sample in this folder demonstrates:

  • How to create a computed symbol and use that for conditions

In this sample we define a few parameter in the template.json file. There is also a computed symbols BackgroundGreyAndDisplayCopyright which combines the value for two parameters. Then this symbol can be used as a conditional in source files.

Try the sample with the following and compare the results.

  • dotnet new sample15 -o Sam15 --DisplayCopywrite false
  • dotnet new sample15 -o Sam15 --DisplayCopywrite true --BackgroundColor aliceblue

See