I didn't see any mention of routes? (And of course, routes need to be registered in reverse... so global app routes registered last)
On Thu, Mar 18, 2010 at 1:04 PM, James Curran <[email protected]>wrote: > Since the subject was brought up a couple days ago, I've been working > on implemeting Portable Areas in Monrail. I think I've got a fully > function example ready. I'll have it up in CastleContrib soon, but > first I want to make sure that it does everything it's supposed to. > > - The example is a controller handling three pages, a layout, an image > and a css file. > > - The example is a single assembly, with all views, and other files as > embedded resources. > > - That assembly can be integrated into a existing MR website (I used > the CastleContrib ViewComponent TestSite), by just dropped the single > assembly into the bin folder, and added a line to the web.config. > > -The layouts & views are read from the resources automatically. From > the application POV, it's just like if there were individual files > there. > > - The embedded views can be local overridden, just by create an > appropriate view template. > > - Embedded file can be referenced by just {siteRoot}/{Controller}/ > {filename}.rails, > e.g. Displaying yourPic.png is just "http://example.com/MyWidget/ > yourPic.png.rails" > > > Any feature that this is supposed to have that's missing? > > > Here's the entire controller code for my example: > > [Layout("default","patest")] > public class PATest : PortableAreaController > { > public void Page1() > { } > public void Page2() > { } > public void Page3() > { } > } > > PortableAreaController base class handles all the magic. Of the > layouts, "patest" is embedded, and "default" refers to the one in the > hosting website. > > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
