Skip to content

Commit

Permalink
Auto include module page's (GridPage etc.) .css file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Oct 10, 2024
1 parent 5369b57 commit e2fb421
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@model ModulePageModel
@inject ITextLocalizer Localizer
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostEnvironment
@{
if (Model.PageTitle != null)
ViewData["Title"] = Model.PageTitle.ToString(Localizer);
Expand All @@ -8,7 +9,7 @@
if (Model.Layout != null)
Layout = Model.Layout;
}

@Html.AutoIncludeModuleCss(Model.Module)
@Html.Raw(Model.HtmlMarkup)

<script type="module">
Expand Down

0 comments on commit e2fb421

Please sign in to comment.