ToolUp.PublicRendering
0.45.0
Prefix Reserved
dotnet add package ToolUp.PublicRendering --version 0.45.0
NuGet\Install-Package ToolUp.PublicRendering -Version 0.45.0
<PackageReference Include="ToolUp.PublicRendering" Version="0.45.0" />
<PackageVersion Include="ToolUp.PublicRendering" Version="0.45.0" />
<PackageReference Include="ToolUp.PublicRendering" />
paket add ToolUp.PublicRendering --version 0.45.0
#r "nuget: ToolUp.PublicRendering, 0.45.0"
#:package ToolUp.PublicRendering@0.45.0
#addin nuget:?package=ToolUp.PublicRendering&version=0.45.0
#tool nuget:?package=ToolUp.PublicRendering&version=0.45.0
ToolUp.PublicRendering
Server-side-rendered public-facing pages for ToolUp.Platform: marketing sites, content portals, public landing pages. Companion package — apps that leave ServerConfig.PublicRendering = NoPublicRendering (the default) pay zero runtime cost.
Phase 38 status: in progress. Six-rule portability audit clean; strip-imports byte-for-byte verified.
What this is
The SDK collapses the "render markdown pages, emit a sitemap, honour legacy URLs, ship structured-data tags" loop into one composable companion. Source-of-truth content lives as content/**/*.md files in the deployment's repo (or IEntityStore<PublicPage> records for runtime-edited entries); rendering uses Giraffe.ViewEngine layouts that the consumer authors per-deployment. Styling stays opinion-free (Tailwind / Pico CSS / hand-CSS all compose cleanly because templates are plain Html.div [ prop.className "..." ]).
| Concern | File | Module |
|---|---|---|
| Content types | Shared/PublicContentTypes.fs |
Slug, LayoutName, ContentBody, PublicPage, ContentRoot, Redirect, PublicRenderingMode |
| Server interface | Server/IPublicContentApi.fs |
IPublicContentApi — six-rule portable |
| Markdown loader | Server/MarkdownContentLoader.fs |
walks content/**/*.md; dev-mode FileSystemWatcher for hot-reload |
| Default impl | Server/PublicContentApiImpl.fs |
file-first; optional IEntityStore<PublicPage> overlay |
| Redirect middleware | Server/RedirectMap.fs |
redirects.csv-driven 301s; query strings preserved |
| Sitemap | Server/SitemapGenerator.fs |
/sitemap.xml; Frontmatter["sitemap"] = "exclude" honoured |
| JSON-LD | Server/StructuredDataHelpers.fs |
Article / Person / Event / Organization / BreadcrumbList emitters |
| Page handler | Server/PublicPageHandler.fs |
catch-all GET /{slug} → resolve → render → redirect → 404 |
| Compose pipeline | Server/PublicRenderingCompose.fs |
PublicRenderingOptions + withPublicRendering, PublicRenderingExport |
Minimal compose
open ToolUp.Platform
open ToolUp.PublicRendering
open Giraffe.ViewEngine
let baseLayout (page: PublicPage) : XmlNode =
html [] [
head [] [
title [] [ str page.Title ]
meta [ _name "description"; _content page.Description ]
]
body [] [
// page body slot — layouts choose how to render `page.Body`
]
]
ServerApp.empty
|> ServerApp.withConfig
{ ServerConfig.defaults with
PublicRendering = EnabledPublicRendering (ContentRoot "content") }
|> withPublicRendering (
PublicRenderingOptions.create ()
|> PublicRenderingOptions.withLayout (LayoutName "base") baseLayout
)
|> ServerApp.run
Six portability rules
IPublicContentApi satisfies all six rules. See the interface docstring in Server/IPublicContentApi.fs for the per-rule audit.
Strip-imports guarantee
ServerConfig.PublicRendering = NoPublicRendering (the default) strips the entire surface: no /sitemap.xml handler, no markdown-watcher hosted service, no redirect middleware, no JSON-LD helpers loaded. Byte-for-byte equivalent to a base ServerApp.run (per IncludePlatformDefaults-style discipline).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Feliz.ViewEngine (>= 1.0.3)
- Giraffe.ViewEngine (>= 1.4.0)
- Markdig (>= 1.2.0)
- ToolUp.Platform.Core (>= 0.45.0)
- ToolUp.Platform.Server (>= 0.45.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ToolUp.PublicRendering:
| Package | Downloads |
|---|---|
|
ToolUp.ContentAuthoring
CMS authoring bridge for ToolUp (Phase 89): a content type is a ToolUp.Forms FormSchema, a content entry is a Submission, and publishing projects a validated submission to a ToolUp.PublicRendering PublicPage with a Narrative body. Forms is consumed unforked — validation comes straight from the Forms engine. Opt-in companion so PublicRendering / Forms consumers that don't author content pay nothing. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.45.0 | 52 | 12/2/2026 |
| 0.44.0 | 98 | 12/1/2026 |
| 0.43.1 | 114 | 11/28/2026 |
| 0.43.0 | 130 | 11/25/2026 |
| 0.42.1 | 162 | 11/16/2026 |
| 0.41.0 | 136 | 11/7/2026 |
| 0.40.0 | 156 | 11/6/2026 |
| 0.39.0 | 123 | 11/4/2026 |
| 0.38.1 | 153 | 11/1/2026 |
| 0.38.0 | 119 | 10/31/2026 |
| 0.37.0 | 149 | 10/29/2026 |
| 0.36.0 | 133 | 10/29/2026 |
| 0.35.0 | 126 | 10/28/2026 |
| 0.34.1 | 120 | 10/27/2026 |
| 0.34.0 | 128 | 10/26/2026 |
| 0.33.0 | 112 | 10/25/2026 |
| 0.32.0 | 117 | 10/24/2026 |
| 0.31.0 | 134 | 10/22/2026 |
| 0.30.0 | 136 | 10/20/2026 |
| 0.29.0 | 141 | 10/19/2026 |