Angle Bracket Percent

David Ebbo's blog Follow me on Twitter (@davidebbo)

Browse by Tags

Tagged Content List
  • Blog Post: Turn your Razor helpers into reusable libraries

    Note: the generator has evolved since this post. Although the post is still worth reading, please go to http://razorgenerator.codeplex.com/ for the most up to date doc. The first blog post I ever wrote was titled “ Turning an ascx user control into a redistributable custom control ”. It...
  • Blog Post: Light up your NuGets with startup code and WebActivator

    [Please see the WebActivator wiki for the latest docs] Wow, it’s hard to believe that it’s been less than a week since NuGet went public. We were hoping to get noticed, but the attention we got was way beyond my wildest expectations! The buzz on Twitter has just been phenomenal, and for...
  • Blog Post: T4MVC 2.6.20, and upcoming T4MVC talk at MvcConf

    I just pushed T4MVC out to the MvcContrib CodePlex site.  You can go to the T4MVC Home Page to get started with it. Last time I blogged about a T4MVC release was for 2.6.13.  In the mean time, I released 2.6.14 and 2.6.15, but they were minor updates so I just tweeted them.  You can check...
  • Blog Post: Check out Chirpy, a very cool Add-In to run T4MVC and do many other cool things

    Just a quick post to point folks to a very cool CodePlex Add-In that you may not know about.  It’s called Chirpy and can be downloaded from http://chirpy.codeplex.com/ .  The reason I discovered it is that it includes functionality to automatically run T4MVC.  In fact, it is basically...
  • Blog Post: An even better way to run T4MVC: a VS AddIn

    Last week, I blogged about a nice way of auto-running T4MVC by using the Macro IDE to write an OnBuildBegin event handler .  This was a big improvement over the hacky ‘AlwaysKeepTemplateDirty’ flag that we’ve been using since T4MVC’s early days. Since then, Wayne Brantley has taken this idea to...
  • Blog Post: A better way to auto-run T4MVC when you build

    Update: also see the newer post on this topic   T4MVC has always struggled with finding the right way of running automatically when you build.  Being a T4 template in your project, by default it just runs when you save it.  This is not great, because you really want it to rerun whenever...
  • Blog Post: T4MVC 2.6.13: now officially in MvcContrib, with a few new features

    To get the latest build of T4MVC: Go to MvcContrib T4MVC page on CodePlex   A few weeks back, we announced (mostly on Twitter) that T4MVC was moving into the MvcContrib Codeplex project.  I didn’t say much about it at the time because there wasn’t a whole lot to say yet, in the sense that the...
  • Blog Post: Debugging ASP.NET generated code

    Update 2/4/2010 : changed Technique #2 to use Debugger.Break()   This post applies to any ASP.NET app that uses .aspx files, whether WebForms or MVC. When you write an aspx/ascx/master file (I’ll just say aspx for here on, but it applies to all), it gets compiled dynamically by the ASP.NET runtime...
  • Blog Post: Take your MVC User Controls to the next level

    Note: this is based on ASP.NET MVC 2 RC , and will not work on earlier builds.   The quick pitch: make your User Controls as cool as built-in render helpers! The goal of this post is to show you how to change the way MVC user controls are called from something like this: <%= Html.Partial("...
  • Blog Post: T4MVC 2.6.10: fluent route value API, shorter way to refer to action, and more

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex I just posted build 2.6.10. There were also a few builds in between since I last blogged about 2.6, so this post describes some of those changes (full history here ). Fluent route value API As you probably know, T4MVC uses a pattern...
  • Blog Post: Passing anonymous objects to MVC views and accessing them using dynamic

    Note (12/22/2011): now that MVC 3 has direct support for dynamic, the technique below is no longer necessary. This post is in fact what led to integrating the feature into MVC! First, I’ll start with a little disclaimer: this post is not about whether using dynamic is better/worse than static...
  • Blog Post: T4MVC 2.6: MVC 2 Areas support

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex One of MVC 2's major new features is the support for breaking up a large application into "Areas". This works by following a structure that looks like: Root folder Models Views Controllers Areas NerdDinner...
  • Blog Post: T4MVC now has a real home and a dedicated forum!

    Up until now, most things related to T4MVC were happening through my various blog posts about it.  And while that was sort of working ok for a while, it was also less than ideal for a couple reasons. First, there was no single place to go to in order to get information about it.  You’d basically...
  • Blog Post: T4MVC 2.5.01: added support for Html.RenderAction and Html.Action

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex MVC 2 Beta introduces two nice helpers called Html.RenderAction and Html.Action. Phil Haack described them in detail on his blog , so you may want to read through that before reading this post. Basically, they’re two additional methods...
  • Blog Post: T4MVC 2.5.00 update: multiple output files and minified javascript support

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex T4MVC build 2.5.00 brings a couple of fun new features that I’ll describe in this post. I can’t take too much credit for them as they came from users who suggested them to me, and helped out getting the code going. Support for multiple...
  • Blog Post: T4MVC 2.4.04 update: MVC 2 support, new settings, cleanup, fixes

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex Though I haven’t blogged for a while about T4MVC, I’ve been making a few minor updates and only sent notification via Twitter. Now, I have a few things that are worth discussing in a little more detail. Note that you can see the complete...
  • Blog Post: T4MVC 2.4 updates: settings file, sub view folders, ActionName support and more

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex This post is a continuation of various previous posts on the T4MVC template for ASP.NET MVC: A new and improved ASP.NET MVC T4 template The MVC T4 template is now up on CodePlex T4MVC 2.2 update: Routing, Forms, DI container...
  • Blog Post: Two ways to use T4 templates: support code vs. one-time generation

    T4 templates have proven to be useful is a whole range of scenarios, and more and more developers are finding interesting things to do with them. For the most part, all those scenarios fall under two very distinct categories: “support code” versus one-time generation.  Unlike my previous post on...
  • Blog Post: T4MVC 2.2 update: Routing, Forms, DI container, fixes

    To get the latest build of T4MVC: Go to T4MVC home page This post is a continuation of various recent posts, most notably: A new and improved ASP.NET MVC T4 template The MVC T4 template is now up on CodePlex First, I’d like to thank all those who are using the MVC T4 template and sent...
  • Blog Post: The MVC T4 template is now up on CodePlex, and it does change your code a bit

    Short version : the MVC T4 template (now named T4MVC) is now available on CodePlex, as one of the downloads in the ASP.NET MVC v1.0 Source page . Go to T4MVC home page Poll verdict: it’s ok for T4MVC to make small changes Yesterday, I posted asking how people felt about having the template modify...
  • Blog Post: Mind if my MVC T4 template changes your code a bit?

    Update : Please see this post for what came out of this ‘poll’, and for a pointer to the newest T4 template on CodePlex. When working on my MVC T4 template , I was not able to use reflection to discover the Controllers and Actions, because the code that the template generates is itself in the same...
  • Blog Post: A new and improved ASP.NET MVC T4 template

    Update : Please read this post for the newest and greatest. A couple weeks ago, I blogged about using a Build provider and CodeDom to generate strongly typed MVC helpers at runtime. I followed up a few days later with another version that used T4 templates instead, making it easier to customize. ...
  • Blog Post: A T4 based approach to creating ASP.NET MVC strongly typed helpers

    Update : Please see this newer post for the latest and greatest MVC T4 template   Earlier this week, I wrote a post on using a BuildProvider to create ActionLink helpers .  That approach was using CodeDom to generate the code, and there was quite some user interest in it (and Phil blogged it...
  • Blog Post: A BuildProvider to simplify your ASP.NET MVC Action Links

    Update : Please see this newer post for the latest and greatest MVC T4 template   One downside of using Html.ActionLink in your views is that it is late bound.  e.g. say you write something like this: <% = Html.ActionLink( "Home" , "Index" , "Home" ) %> ...
Page 1 of 1 (24 items)