Main Content

Sharing templates between server and client – An ASP.NET MVC View Engine

About the Talk

November 17, 2012 11:45 AM

Chandler - Gilbert Community College Pecos Campus: 2626 E Pecos Road, Chandler, AZ 85225

Chandler - Gilbert Community College Pecos Campus: 2626 E Pecos Road, Chandler, AZ 85225

Most agree that the web sites we design should have progressive enhancement. But how does this reconcile with the push for more and more dynamic web applications where so much of the data is dynamically loaded via Json... I'll show how I integrated the use of a single templating library, JsRender, on both the server and client side. JsRender is a Javascript library intended as the replacement for jQuery Templates on the web browser. On the server side, I made a ASP.Net MVC View Engine using the .Net Javascript engine, Jurassic, to run the same exact template on the server, providing a completely populated webpage even if Javascript is disabled on the client.

Ratings and Recommendations

This Talk hasn't been rated yet. Sign In to rate Talks.

comments powered by Disqus