I was thinking on my second post for quite some time. I wanted to talk about something new, very new and something that has been a talk of the town. Of late, I have been hearing too much on Hot Towel template in SPA. Let’s talk about this.
Hot Towel: “Because you don’t want to go to the SPA without one!”
This got me so much in to Hot Towel and this is what I came across.
What is Hot Towel in MVC 4?
A visual studio template created by John Papa to build a complete Single Page Application (SPA) in one template. Unlike other templates it has everything like Knockout for Data binding, provides Rich Data support via BreezeJS, has Navigation and History built in and is based off DurandalJS SPA Framework.
The SPA HotTowel template comes with the following functionality:
- ASP.NET MVC
- ASP.NET Web API
- ASP.NET Web Optimization for bundling and minification
- Breeze.js for rich data management
- Durandal.js for view composition, app life cycle and navigation
- Knockout.js for data bindings
- Require.js for modularity
- Toastr.js for notifications (pop-up messages)
- Twitter Bootstrap for styling
Basically the Hot towel has a folder named “App”, which contains collection of following modules,
- App_Start – Start-up server side logic
- Content – Usually contains images and css
- Controllers – API Controllers
- Models – Here we create the view models
- Views – This is where we create pages for the application and implement knockout for databinding.
If you want to dig more on Hot Towel, kindly go to DotNetCurry…
It is said that hot towel has become an essential template for creating SPA with rich navigation and data access functionality. I have just started working on this and very soon I will be posting my experiences with HOT TOWEL !!!