changed some logic to work better
This commit is contained in:
parent
c987948d01
commit
c667ce43b8
2 changed files with 10 additions and 1 deletions
|
@ -89,6 +89,15 @@ class HTML
|
|||
{
|
||||
if(_Id != .Empty)
|
||||
buffer.Append(scope $"id=\"{_Id}\"");
|
||||
|
||||
if(_Classes.Count > 0)
|
||||
{
|
||||
buffer.Append("class=\"");
|
||||
for(var i in _Classes)
|
||||
buffer.Append(scope $"{i} ");
|
||||
buffer.Append("\" ");
|
||||
}
|
||||
|
||||
for(var i in _Values)
|
||||
{
|
||||
buffer.Append(scope $"{i.key}=\"{i.value}\"");
|
||||
|
|
|
@ -58,7 +58,7 @@ abstract class Page
|
|||
<head>
|
||||
<title>{Title}</title>
|
||||
{BuildStyles(.. scope .())}
|
||||
|
||||
{BuildScripts(.. scope .())}
|
||||
</head>
|
||||
<body>
|
||||
{BuildElements(.. scope .())}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue