Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I am pretty new to T4 templates. I am seeking help to start creating a page using T4 templates.

It seems most of the t4 editors are paid versions. However, i found a tool which is indeed free (http://www.devart.com/t4-editor/download.html[^])

Now i am stuck in creating pages using T4 MVC. I mean i need a right approach to start creating the app. Do we utilize T4 for each and every views, controllers and models?. How we can use a single template(any sample would be helpful) to create multiple output files(view, controller and model) in mvc (or) one template for view,one for controller and one for model?

Any sample apps or tutorial to create a MVC app using t4 would be helpful. Thanks in advance.

Note: I am using MVC 4.0 , Razor view

Thanks,
Syed Shabeer
Posted
Updated 16-Aug-13 1:05am
v2

Try this
http://pluralsight.com/training/Courses/TableOfContents/t4-templates[^]
You can use trial version of pluralsight.
Hope this helps
 
Share this answer
 
Comments
Andreas Gieriet 16-Aug-13 7:49am    
This is not available to the public.
Jameel VM 16-Aug-13 8:10am    
i think using trial version he can use it.
For public accessible content, see T4 Tutorial: Creating your first code generator[^] and Code Generation and T4 Text Templates[^].

Have also a look at the T4 MVC specifig blog post T4 Templates: A Quick-Start Guide for ASP.NET MVC Developers[^]

Cheers
Andi
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900