ScriptTemplate
The #Script Default Template Language (does not process lang ...
blocks)
Assembly: ServiceStack.Common.dll
View Source
Declaration
public sealed class ScriptTemplate : ScriptLanguage
Properties
Name
View Source
Declaration
public override string Name { get; }
Inherited Properties
LineComment
View Source
Declaration
public virtual string LineComment { get; }
Name
View Source
Declaration
public abstract string Name { get; }
Verbatim
View Source
Declaration
public static ScriptLanguage Verbatim { get; }
Fields
Language
View Source
Declaration
public static readonly ScriptLanguage Language
Methods
Parse(ScriptContext, ReadOnlyMemory<Char>, ReadOnlyMemory<Char>)
View Source
Declaration
public override List<PageFragment> Parse(ScriptContext context, ReadOnlyMemory<char> body, ReadOnlyMemory<char> modifiers)
Returns
System.Collections.Generic.List<ServiceStack.Script.PageFragment>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ReadOnlyMemory<System.Char> | body |
ReadOnlyMemory<System.Char> | modifiers |
WritePageFragmentAsync(ScriptScopeContext, PageFragment, CancellationToken)
View Source
Declaration
public override async Task<bool> WritePageFragmentAsync(ScriptScopeContext scope, PageFragment fragment, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
ServiceStack.Script.PageFragment | fragment |
System.Threading.CancellationToken | token |
Inherited Methods
Parse(ScriptContext, ReadOnlyMemory<Char>)
View Source
Declaration
public List<PageFragment> Parse(ScriptContext context, ReadOnlyMemory<char> body)
Returns
System.Collections.Generic.List<ServiceStack.Script.PageFragment>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ReadOnlyMemory<System.Char> | body |
Parse(ScriptContext, ReadOnlyMemory<Char>, ReadOnlyMemory<Char>)
View Source
Declaration
public abstract List<PageFragment> Parse(ScriptContext context, ReadOnlyMemory<char> body, ReadOnlyMemory<char> modifiers)
Returns
System.Collections.Generic.List<ServiceStack.Script.PageFragment>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ReadOnlyMemory<System.Char> | body |
ReadOnlyMemory<System.Char> | modifiers |
ParseVerbatimBlock(String, ReadOnlyMemory<Char>, ReadOnlyMemory<Char>)
View Source
Declaration
public virtual PageBlockFragment ParseVerbatimBlock(string blockName, ReadOnlyMemory<char> argument, ReadOnlyMemory<char> body)
Returns
ServiceStack.Script.PageBlockFragment
Parameters
Type | Name |
---|---|
System.String | blockName |
ReadOnlyMemory<System.Char> | argument |
ReadOnlyMemory<System.Char> | body |
UnwrapValue(Object)
View Source
Declaration
public static object UnwrapValue(object value)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | value |
WritePageFragmentAsync(ScriptScopeContext, PageFragment, CancellationToken)
View Source
Declaration
public virtual Task<bool> WritePageFragmentAsync(ScriptScopeContext scope, PageFragment fragment, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
ServiceStack.Script.PageFragment | fragment |
System.Threading.CancellationToken | token |
WriteStatementAsync(ScriptScopeContext, JsStatement, CancellationToken)
View Source
Declaration
public virtual Task<bool> WriteStatementAsync(ScriptScopeContext scope, JsStatement statement, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
ServiceStack.Script.JsStatement | statement |
System.Threading.CancellationToken | token |