actually, one just need an initialisation method for templates
This commit is contained in:
parent
7e646afea1
commit
8a44da588a
5 changed files with 16 additions and 20 deletions
|
|
@ -10,8 +10,7 @@ namespace Yavsc.Abstract.Templates
|
|||
public abstract class Template
|
||||
{
|
||||
|
||||
StringBuilder _buffer = new StringBuilder();
|
||||
|
||||
StringBuilder _buffer ;
|
||||
|
||||
public virtual void Write(object value)
|
||||
{ WriteLiteral(value); }
|
||||
|
|
@ -25,7 +24,9 @@ namespace Yavsc.Abstract.Templates
|
|||
}
|
||||
}
|
||||
|
||||
public abstract Task ExecuteAsync();
|
||||
public virtual void Init() {
|
||||
_buffer = new StringBuilder();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue