Class ScribanDocumentSectionRenderer
Inheritance
System.Object
ScribanDocumentSectionRenderer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Docs.HtmlConverting
Assembly: Volo.Docs.Web.dll
Syntax
public class ScribanDocumentSectionRenderer : IDocumentSectionRenderer, ITransientDependency
Constructors
ScribanDocumentSectionRenderer()
Declaration
public ScribanDocumentSectionRenderer()
Properties
Logger
Declaration
public ILogger<ScribanDocumentSectionRenderer> Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| ILogger<ScribanDocumentSectionRenderer> |
Methods
GetAvailableParametersAsync(String)
Declaration
public Task<Dictionary<string, List<string>>> GetAvailableParametersAsync(string document)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | document |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>>> |
GetPartialTemplatesInDocumentAsync(String)
Declaration
public Task<List<DocumentPartialTemplateWithValuesDto>> GetPartialTemplatesInDocumentAsync(string documentContent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | documentContent |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.List<DocumentPartialTemplateWithValuesDto>> |
RenderAsync(String, DocumentRenderParameters, List<DocumentPartialTemplateContent>)
Declaration
public Task<string> RenderAsync(string document, DocumentRenderParameters parameters = null, List<DocumentPartialTemplateContent> partialTemplates = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | document | |
| DocumentRenderParameters | parameters | |
| System.Collections.Generic.List<DocumentPartialTemplateContent> | partialTemplates |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> |
Implements
ITransientDependency