Renders themed pages as swappable sections with path-mirrored template scopes and a Razor fallback

This commit is contained in:
BinaryAlley committed 2026-08-20 06:50:17 -07:00
1 parent f17e685239
commit e37bb3ecc6
24 files changed
+351 -187

No files matched your search

@@ -22,6 +22,7 @@
<link rel="stylesheet" href="~/css/dialog.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/textbox.css" asp-append-version="true" />
<link rel="stylesheet" href="~/Lumina.Presentation.Web.styles.css" asp-append-version="true" />
@await RenderSectionAsync("Head", required: false) <!--needed for themes templates css files-->
</head>
<body>
<div id="page">
@@ -0,0 +1,14 @@
@model Lumina.Presentation.Web.Common.DTO.Themes.ThemeViewDto
@section Head {
@if (!string.IsNullOrEmpty(Model.AssetBase))
{
<link rel="stylesheet" href="@Model.AssetBase/theme.css" />
}
}
@Html.Raw(Model.Content)
@section Scripts {
@Html.Raw(Model.Script)
}