Story Details for videos

Golf Tracker - Episode 8 - Code Templates - Part 2 - Views

kahanu
Author:
Version:
Views:
2404
Date Posted:
8/2/2011 8:32:49 PM
Date Updated:
8/2/2011 8:32:49 PM
Rating:
0/0 votes
Running Time:
39:26 minutes
Framework:
ASP.NET MVC 2
Platform:
Windows
Programming Language:
C#
Technologies:
T4 Templates, T4 Views
Tags:
golf, golf tracker, T4 Views
Demo site:
Home Page:
Share:
Downloads:

Golf Tracker - Code Templates - Part 2 - Views

In the last screencast I modified the T4 templates to create a custom controller template.  In this screencast I'll start working on modifying the T4 templates for the views.

By modifying the T4 Views templates, you are reducing the amount of manual, repetitive work that would be necessary to generate the views otherwise. And by allowing the tooling to do this work, you are ensuring that you are only including code that you know will work.

Another note about customizing the T4 templates, if you aren't already sold that this is a good idea... another reason that it's extremely helpful to modify these templates is not just to have the tooling write most of the code for you, but take for example that you are using custom CSS styling that needs to be part of each CRUD form.  You can build all of this custom styling into the T4 template modifications.  That by itself is a real time saver!

Comments

    No comments yet.

 

User Name:
(Required)
Email:
(Required)