RazorEngine
RazorEngine copied to clipboard
Open source templating engine based on Microsoft's Razor parsing engine
Assembly.Location could throw. In my case, I am trying to use RazorEngine in an Azure Function, which loads some native Edge dlls for JavaScript interop. These assemblies are loaded into...
so I think this is related to Windows 10's May 2018 cumulative update (three new KB's appeared in my update history, and I stripped my templates down to confirm the...
I run the RunCompile for 50 times, it will create 50 assemblies: ```csharp foreach(var i in Enumerable.Range(1,50){ Engine.Razor.RunCompile(i.ToString(), "templateKey", null, null); } ``` The assemblies list: ```text CompiledRazorTemplates.Dynamic.RazorEngine_06b3819c78504341b2d3b6838c2eb173, Version=0.0.0.0, Culture=neutral,...
please help im stuck.... ``` List model = Table1.AsEnumerable() .GroupBy(row => new { Field1 = row.Field("STOK_ADI"), Field2 = row.Field("KOD") }) .Select(g => g.CopyToDataTable()) .ToList(); var templateSource = new LoadedTemplateSource(File.ReadAllText("Sablon/IrsaliyeTemplate_rzr.html") );...
what for typeof(Person) ? It is possible to know it from 3-rd parameter.
I didn't found Timeout option for RunCompile/Run methods. Not present in configurator either. So Im a little bit in a pinch when it comes to running untrusted code, for example:...
Getting this exception We are using RazorEngine version 3.10.0. This is coming when there is only one template we have right now. exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter....
I noticed that first compile takes about 3.5 sec. Then each other call still takes 0.3sec. **300ms is still too much!** I do use Compile / Run and (v3.9.3): -...
Overriding the base template, and providing your own template of T, which also has a constructor means that the roslyn code won't be able to create your base template type...
Hi I am using below code. to convert the template. I have around 100 templates and wan to cache them. it works absolutely fine on my Dev but does not...