13.4. Summary

We have extended our message creation and WYSIWYG capabilities by giving the user the ability to create a message from a template. The templates are simply pre-made content pieces that populate the WYSIWYG editor. We defined some system/global templates that would be accessible to all users, but we also created the framework to enable users to create and reuse their own templates.

We did all this using some neat jQuery tricks and again have shown the power that is available to us through jQuery as well as the usefulness of a full suite of automated unit tests.

Get ASP.NET MVC 1.0 Test Driven Development: Problem - Design - Solution now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.