Last active
October 29, 2019 07:26
-
-
Save danielcrenna/b6be9b32d18dbc4eb503f7bb8d241017 to your computer and use it in GitHub Desktop.
[Blowdart.UI] Hello, World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Blowdart.UI.Web" Version="0.0.3-pre" /> | |
</ItemGroup> | |
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Blowdart.UI.Web; | |
namespace Blowdart.UI.Demo | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) => UiServer.Start(args, builder => | |
{ | |
builder.AddPage("/", ui => | |
{ | |
ui.Header(1, "Hello, world!"); | |
ui.Literal("Welcome to your new app."); | |
}); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment