This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.Reporting.Generic.
Summary
Gets an instance of the generic report format using a template string with custom settings.
- Assembly
- Cake
.Issues .Reporting .Generic .dll - Namespace
- Cake
.Issues .Reporting .Generic - Containing Type
- Generic
Issue Report Format Aliases
Syntax
public static IIssueReportFormat GenericIssueReportFormatFromContent(this ICakeContext context, string templateContent, Action<GenericIssueReportFormatSettings> configurator)
Examples
Create HTML report from a template string with custom title:
template =
"<h1>@ViewBag.Title</h1><ul>@foreach(var issue in Model){<li>@issue.Message</li>}</ul>";
CreateIssueReport(
issues,
GenericIssueReportFormatFromContent(
template,
x => x.WithOption("Title", "My Issue Report")),
@"c:\repo",
@"c:\report.html");
Attributes
| Type | Description |
|---|---|
| Cake |
|
| Cake |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| templateContent | string | Content of the template to use for generating the report. |
| configurator | Action |
Action for defining the settings. |
Return Value
| Type | Description |
|---|---|
| IIssueReportFormat | Instance of the generic report format. |
