Skip to content

Instantly share code, notes, and snippets.

@danielcrenna
Last active October 29, 2019 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielcrenna/b6be9b32d18dbc4eb503f7bb8d241017 to your computer and use it in GitHub Desktop.
Save danielcrenna/b6be9b32d18dbc4eb503f7bb8d241017 to your computer and use it in GitHub Desktop.
[Blowdart.UI] Hello, World
<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>
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