Just over a year ago, I blogged about my implementation of the RSS aggregator for cfwheels.org using Yahoo! Pipes, FeedBurner,
<cffeed>, and Wheels partials. Now that ColdFusion on Wheels version 1.1 is in beta (and almost complete), there is a new piece of functionality involving partials that makes my solution simpler.
This past week, Kenneth Barrett asked a question on Twitter about how to DRY up his form code in ColdFusion on Wheels. He didn't want to have a copy of the same form across 2 view files. This is because he is a smart guy, even as a beginner! :)
I linked Kenneth to a post that I wrote a year ago about combining 2 forms into a single view file. That approach works well for certain scenarios, but I've since changed my mind on my general preference for DRYing up forms.
I decided to experiment with a new function coming up in CFWheels 1.1 called
I'm looking forward to playing around with ColdFusion 9 when I get some more time here in a month or so. One of the areas that interests me in particular is the ability to write full CFCs in CFScript syntax.
This time, I'll talk about how we could factor out view logic so that the profile form can be used for both the
edit actions. With all of this MVC goodness, we should be able to do some refactoring easily, shouldn't we?