DelphiRazor icon indicating copy to clipboard operation
DelphiRazor copied to clipboard

DelphiRazor HTML scripting engine

Results 6 DelphiRazor issues
Sort by recently updated
recently updated
newest added

The @foreach statement implementation has follows bugs: 1. Traversing @foreach statement duplicates the last iteration value; 2. The first output of @foreach statement produce redundant padding. ![ForEach_Bugs](https://user-images.githubusercontent.com/31899512/121211717-61af0e00-c885-11eb-95f4-5292e2283eaa.png)

I have tried to loop over objects that are in generic TList or generic TArray. Can not make it work. Would be great if it did. [DashWriter.zip](https://github.com/marcocantu/DelphiRazor/files/4143741/DashWriter.zip)

@foreach (var emp in employee) { @emp.FirstName "+" @emp.LastName (@emp.PhoneExt) @if(@emp.Salary

The check for EOF has been modified so it is called directly after the call to Next. Previously, the ForEach loop was accessing the last record in a dataset twice....

Allow nesting of commands within @ExtraHeader block such as @if

It is now possible to have a multiple-dotted name (i.e. in fully qualified type names). Just changed the GetEntireDottedValue to look after the first dot and continue while there is...