Summary
Gets an instance of a the generic report format using a template string with custom settings.
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 |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
templateContent |
string |
Content of the template to use for generating the report. |
configurator |
Action<GenericIssueReportFormatSettings> |
Action for defining the settings. |
Return Value