This commit is contained in:
@@ -353,10 +353,11 @@ namespace AyaNova.Biz
|
||||
await page.AddScriptTagAsync(new AddTagOptions() { Content = report.JsHelpers });
|
||||
await page.AddStyleTagAsync(new AddTagOptions() { Content = report.Style });
|
||||
|
||||
|
||||
var pagecontent = await page.GetContentAsync();
|
||||
|
||||
//compile and run handlebars template
|
||||
var compileScript = $"let ayReportData=ayPreRender({ReportData});Handlebars.compile(`{report.Template}`)(ayReportData);";
|
||||
// var compileScript = $"let ayReportData=ayPreRender({ReportData});Handlebars.compile(`{report.Template}`)(ayReportData);";
|
||||
var compileScript = $"Handlebars.compile(`{report.Template}`)(ayPreRender({ReportData}));";
|
||||
var resultHTML = await page.EvaluateExpressionAsync<string>(compileScript);
|
||||
|
||||
//render report as HTML
|
||||
|
||||
5210
server/AyaNova/resource/rpt/ay-hb-developmentfull.js
Normal file
5210
server/AyaNova/resource/rpt/ay-hb-developmentfull.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user