using MeetTheTeacher.Model;
namespace MeetTheTeacher.Export;
///
/// Allows to export data of type to a file in HTML table syntax.
/// Be careful: does not create valid HTML page, just a fragment!
///
///
///
public sealed class HtmlDataExporter : FileExporterBase, IDataExporter
{
public void Export(IEnumerable items, string? fileName)
{
// TODO (use a raw string literal with interpolation!)
}
private static string CreateTableRow(IEnumerable values, bool isHeader = false)
{
// TODO
return null!;
}
private static string WrapInTag(string content, string tag) => $"<{tag}>{content}{tag}>";
protected override string FileExtension => ".html";
}