ln.templates/ln.templates/html/DocumentElement.cs

32 lines
680 B
C#

// /**
// * File: DocumentElement.cs
// * Author: haraldwolff
// *
// * This file and it's content is copyrighted by the Author and / or copyright holder.
// * Any use wihtout proper permission is illegal and may lead to legal actions.
// *
// *
// **/
using System;
using System.IO;
namespace ln.templates.html
{
public class DocumentElement : Element
{
public DocumentElement()
:base("#document")
{
}
public override void Render(TextWriter writer)
{
writer.Write("<!DOCTYPE html>");
foreach (Element element in Children)
element.Render(writer);
}
}
}