diff --git a/Docs/Releases.md b/Docs/Releases.md new file mode 100644 index 0000000..62d447e --- /dev/null +++ b/Docs/Releases.md @@ -0,0 +1,30 @@ +# Morris.Blazor.ControlFlow + +![](../Images/control-flow-logo.png) + + +## Releases +### New in 1.0.0 +- `ForEach` +``` + +
  • @Person.Name
  • +``` + +- Simple `If` +``` + + Content + +``` +- `If` with `Else` +``` + + + Content + + + Other content + + +``` \ No newline at end of file diff --git a/Images/control-flow-logo.png b/Images/control-flow-logo.png new file mode 100644 index 0000000..379c4f0 Binary files /dev/null and b/Images/control-flow-logo.png differ diff --git a/Images/control-flow-logo.psd b/Images/control-flow-logo.psd new file mode 100644 index 0000000..e714c7d Binary files /dev/null and b/Images/control-flow-logo.psd differ diff --git a/README.md b/README.md index 8747a24..2c1d329 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,39 @@ # Morris.Blazor.ControlFlow -## New in 1.0.0 -- `ForEach` -``` - -
  • @Person.Name
  • -``` +![](./Images/control-flow-logo.png) + + +## Introduction +[![NuGet version (Morris.Blazor.ControlFlow)](https://img.shields.io/nuget/v/Morris.Blazor.ControlFlow.svg?style=flat-square)](https://www.nuget.org/packages/Morris.Blazor.ControlFlow/) + +***ControlFlow*** is a Blazor library created to help reduce the amount of C# +code found in markup files. -- Simple `If` +Instead of this ``` - - Content - +@if (People?.Length > 0) +{ +
      + @foreach (var person in People) + { +
    1. @person.FullName
    2. + } +
    +} ``` -- `If` with `Else` + +You can write this + ``` - - - Content - - - Other content - + +
      + +
    1. @person.FullName
    2. +
      +
    ``` + +## More information +- View the [Example projects](https://github.com/mrpmorris/Morris.Blazor.ControlFlow/tree/master/Source/Tutorials) +- Read the [Release notes](./Docs/Releases.md) \ No newline at end of file diff --git a/Source/Lib/Directory.Build.props b/Source/Lib/Directory.Build.props index 4b2153c..b52ab80 100644 --- a/Source/Lib/Directory.Build.props +++ b/Source/Lib/Directory.Build.props @@ -2,9 +2,9 @@ netcoreapp3.1;net5.0;net6.0 10 - 1.0.0 - 1.0.0.0 - 1.0.0.0 + 1.0.1 + 1.0.1 + 1.0.1 Peter Morris diff --git a/Source/Lib/Morris.Blazor.ControlFlow/Morris.Blazor.ControlFlow.csproj b/Source/Lib/Morris.Blazor.ControlFlow/Morris.Blazor.ControlFlow.csproj index 8097afc..cdd17f7 100644 --- a/Source/Lib/Morris.Blazor.ControlFlow/Morris.Blazor.ControlFlow.csproj +++ b/Source/Lib/Morris.Blazor.ControlFlow/Morris.Blazor.ControlFlow.csproj @@ -3,6 +3,10 @@ 3.0 enable + A control flow library for Blazor to help eliminate C# code in your markup files. + control-flow-logo.png + README.md + Blazor @@ -11,6 +15,17 @@ ..\..\Lib\MrPMorris.snk + + + True + \ + + + True + \ + + + diff --git a/Source/Morris.Blazor.ControlFlow.sln b/Source/Morris.Blazor.ControlFlow.sln index a9f5ed6..9f74f30 100644 --- a/Source/Morris.Blazor.ControlFlow.sln +++ b/Source/Morris.Blazor.ControlFlow.sln @@ -7,6 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig Lib\Directory.Build.props = Lib\Directory.Build.props + ..\README.md = ..\README.md EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Morris.Blazor.ControlFlow", "Lib\Morris.Blazor.ControlFlow\Morris.Blazor.ControlFlow.csproj", "{5B499DA3-0DB1-48A5-B8E5-3E0B04F53EB7}" @@ -15,11 +16,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tutorials", "Tutorials", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ForEachExample", "Tutorials\ForEachExample\ForEachExample.csproj", "{E438D699-B285-4F8A-8087-095765599DFA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IfThenElseSample", "Tutorials\IfThenElseSample\IfThenElseSample.csproj", "{06B9F71D-5203-4CDD-90A5-627BACFADA75}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IfThenElseSample", "Tutorials\IfThenElseSample\IfThenElseSample.csproj", "{06B9F71D-5203-4CDD-90A5-627BACFADA75}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{CE4D64CF-C516-4E76-8D3B-8F45E795F4D2}" ProjectSection(SolutionItems) = preProject - ..\README.md = ..\README.md + ..\Docs\Releases.md = ..\Docs\Releases.md EndProjectSection EndProject Global