and
System.Collections.Hashtable data = new System.Collections.Hashtable();
data.Add("data1", data1);
data.Add("data2", data2);
can be conveniently replaced by
var data = DictHelper
.CreateO("data1", data1")
.O("data2", data2);
On Fri, Feb 6, 2009 at 3:05 PM, Patrick Steele <[email protected]>wrote:
>
> I just looked at some of my code using an early Dec/2008 version of
> MonoRail and my mail code is:
>
> System.Collections.Hashtable data = new System.Collections.Hashtable();
> data.Add("data1", data1);
> data.Add("data2", data2);
> Message msg = RenderMailMessage("reminder", null, data);
>
> The "reminder.vm" sits in my "Views\mail" folder.
>
> Hope this helps.
>
> --
> Patrick Steele
> http://weblogs.asp.net/psteele
>
>
> On Fri, Feb 6, 2009 at 5:02 AM, Ricardo Lopes <[email protected]> wrote:
> > I was only able to "almost" make it work as I wanted using complete path
> for
> > the view, complete path including extension for the layout and passing
> the
> > PropertyBag as parameters param. In my case is like this:
> > RenderMailMessage("/mail/register", "/layouts/mail.vm", PropertyBag);
> > And I think something like this would be more appropriate:
> > RenderMailMessage("register", "mail");
> > I don't understand why is it so different from the RC3 and from the
> > controller/view mechanism. If I am in a controller and i call RenderView
> I
> > don't have to include the view folder because is assumed that is the
> > controler name, and nowhere else I include the view extension, and the
> > PropertyBag and Helpers where automaticaly available.
> > Why is this behaviour so different?
> > How can i make the Helpers available to the view engine?
>
> >
>
--
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---