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)
|
if(_Id != .Empty)
|
||||||
buffer.Append(scope $"id=\"{_Id}\"");
|
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)
|
for(var i in _Values)
|
||||||
{
|
{
|
||||||
buffer.Append(scope $"{i.key}=\"{i.value}\"");
|
buffer.Append(scope $"{i.key}=\"{i.value}\"");
|
||||||
|
|
|
@ -58,7 +58,7 @@ abstract class Page
|
||||||
<head>
|
<head>
|
||||||
<title>{Title}</title>
|
<title>{Title}</title>
|
||||||
{BuildStyles(.. scope .())}
|
{BuildStyles(.. scope .())}
|
||||||
|
{BuildScripts(.. scope .())}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{BuildElements(.. scope .())}
|
{BuildElements(.. scope .())}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue