Nested object are not rendered
See original GitHub issueI do have object in c# following structure
{
Property1
Property2
Contact{
FirstName
LastName
}
}
Then
var vars = new ScriptObject();
vars.Import(model, renamer: member => member.Name);
var context = new TemplateContext();
context.PushGlobal(vars);
var result = template.Render(context);
So in template I want to print {{Contact.FirstName}}
but it return empty string.
Is it supported?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cannot render nested object array using map - React
Cannot render nested object array using map - React · 1 · Hello Keith, that returns "undefined" but not sure why as it...
Read more >Nested object data not rendering properly : r/reactjs
I compile the data and set the data into state. In my component, the data that is in the initial document shows fine,...
Read more >Nested object are not rendered · Issue #115 · scriban ...
I do have object in c# following structure { Property1 Property2 Contact{ FirstName LastName } } Then var vars = new ScriptObject(); vars....
Read more >Schema not getting rendered for nested objects
Hi I am seeking help to get name, lastname and age renderered in ui which is under nested objects. i am able to...
Read more >[Solved]-Deep nested array of objects not rendering-Reactjs
The problem is that you are not returning anything from inside the innermost map function. return Object.keys(secondData).map((thirdData, i) => { return ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, this is very welcome!
It would be great to give a clear example in the run-time docs showing iterating a .NET string array (or a List of custom objects) and showing their output.