Client Rendering Views with Spark and ASP.NET MVC(odetocode.com)
submitted by
johnsheehan(4785) 3 years, 2 months ago
There are quiet a few tutorials for Spark floating around, but I wanted to call out what appears to be a well hidden secret in the samples: the client rendering of views. In short, the client rendering produces JavaScript you can invoke on the client to render the same HTML you see when rendering a server-side partial view. This means you can happily fetch JSON from the server and use it to produce HTML without duplicating the server-side template logic on the client.
|category: MVC
|Views: 17
tags:
MVC another
Everyones tags:
Your Tags: