("#styled");
-
await builder.Build().RunAsync();
}
}
diff --git a/src/Sample/wwwroot/index.html b/src/Sample/wwwroot/index.html
index 341829b..364eba0 100644
--- a/src/Sample/wwwroot/index.html
+++ b/src/Sample/wwwroot/index.html
@@ -5,7 +5,6 @@
BlazorPrettyCode Sample Site
-
Loading...
diff --git a/src/SamplePages/Pages/Index.razor b/src/SamplePages/Pages/Index.razor
index f56b66b..265c35c 100644
--- a/src/SamplePages/Pages/Index.razor
+++ b/src/SamplePages/Pages/Index.razor
@@ -38,31 +38,17 @@
Install:
-Client Side Support
-
- Initialize BlazorPrettyCode
in your Startup.cs
: services.AddBlazorPrettyCode();
. You may also set defaults.
- In the Configure
method add app.AddComponent<ClientSideStyled>("#styled");
as well as shown below:
+ Initialize BlazorPrettyCode
in your Program.cs
: builder.Services.AddBlazorPrettyCode();
. You may also set defaults.
-
-
-For Client Side Blazor, in your index.html
add a style
tag:
+
-
In your Blazor component or in _imports.razor
import the component: @@using BlazorPrettyCode
and add it to your page:
-Server Side Support
-
-
- Blazor Pretty Code works in Server Side as well. Update your _hosts.cshtml
files and and add to the head
:
-
-
-
-
Demo
diff --git a/src/SamplePages/SamplePages.csproj b/src/SamplePages/SamplePages.csproj
index dbcf541..6d5b4e2 100644
--- a/src/SamplePages/SamplePages.csproj
+++ b/src/SamplePages/SamplePages.csproj
@@ -6,9 +6,9 @@
-
-
-
+
+
+
diff --git a/src/SamplePages/wwwroot/snippets/clientside.html b/src/SamplePages/wwwroot/snippets/clientside.html
deleted file mode 100644
index 341829b..0000000
--- a/src/SamplePages/wwwroot/snippets/clientside.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
- BlazorPrettyCode Sample Site
-
-
-
-
- Loading...
-
-
-
-
diff --git a/src/SamplePages/wwwroot/snippets/program.html b/src/SamplePages/wwwroot/snippets/program.html
index 2e5f95a..b6f382e 100644
--- a/src/SamplePages/wwwroot/snippets/program.html
+++ b/src/SamplePages/wwwroot/snippets/program.html
@@ -8,7 +8,6 @@
builder.RootComponents.Add("app");
//Add BlazorStyled to root components
- builder.RootComponents.Add("#styled");
await builder.Build().RunAsync();
}
diff --git a/src/SamplePages/wwwroot/snippets/serverside.html b/src/SamplePages/wwwroot/snippets/serverside.html
deleted file mode 100644
index 579b6b2..0000000
--- a/src/SamplePages/wwwroot/snippets/serverside.html
+++ /dev/null
@@ -1,19 +0,0 @@
-@page "/"
-@namespace ServerSideSample.Pages
-@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
-
-
-
-
-
-
- Blazor Pretty Code Server Side Sample
-
- @(await Html.RenderComponentAsync(RenderMode.Server))
-
-
- @(await Html.RenderComponentAsync(RenderMode.Server))
-
-
-
-
diff --git a/src/ServerSideSample/Pages/_Host.cshtml b/src/ServerSideSample/Pages/_Host.cshtml
index 579b6b2..2a4e234 100644
--- a/src/ServerSideSample/Pages/_Host.cshtml
+++ b/src/ServerSideSample/Pages/_Host.cshtml
@@ -9,7 +9,6 @@
Blazor Pretty Code Server Side Sample
- @(await Html.RenderComponentAsync(RenderMode.Server))
@(await Html.RenderComponentAsync(RenderMode.Server))