This commit is contained in:
2018-04-26 05:20:08 +02:00
parent 70a4e5ae6e
commit 78178b6607
15 changed files with 1373 additions and 237 deletions

View File

@ -0,0 +1,31 @@
using System;
using System.Text;
using System.Threading.Tasks;
namespace Yavsc.Abstract.Templates
{
/// <summary>
/// A CSharp Razor template.
/// </summary>
public abstract class Template
{
StringBuilder _buffer = new StringBuilder();
public virtual void Write(object value)
{ WriteLiteral(value); }
public virtual void WriteLiteral(object value)
{ _buffer.Append(value); }
public string GeneratedText {
get {
return _buffer.ToString();
}
}
public abstract Task ExecuteAsync();
}
}