31 lines
632 B
C#
31 lines
632 B
C#
// /**
|
|
// * File: TextElement.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 TextElement : Element
|
|
{
|
|
public string Text { get; }
|
|
|
|
public TextElement(string text)
|
|
:base("#text")
|
|
{
|
|
Text = text;
|
|
}
|
|
|
|
public override void Render(TextWriter writer)
|
|
{
|
|
writer.Write(Text);
|
|
}
|
|
}
|
|
}
|