New issue 61 by andrew.john.peters: Fluent method chain with lambdas causes
compilation error
http://code.google.com/p/nhaml/issues/detail?id=61
- Html.jQuery().Accordion().Name("navigation").Items() (parent) =>
- parent.Add().Text("Accordion").Content() () =>
%ul
%li= Html.ActionLink("Basic example", "Basic", "Accordion")
- .Render()
Results in:
// Haml: - Html.jQuery().Accordion().Name("navigation").Items() (parent) =>
Html.jQuery().Accordion().Name("navigation").Items((parent) => {;
// Haml: - parent.Add().Text("Accordion").Content() () =>
Output.Depth = 1;
parent.Add().Text("Accordion").Content(() => {;
textWriter.Write(" <ul");
textWriter.WriteLine(">");
textWriter.Write(" <li");
textWriter.WriteLine(">");
textWriter.Write(" ");
textWriter.WriteLine(Convert.ToString(Html.ActionLink("Basic
example", "Basic", "Accordion")));
textWriter.WriteLine(" </li>");
textWriter.WriteLine(" </ul>");
});
Output.Depth = 0;
});
// Haml: - .Render()
.Render();
The last Render call is orphaned.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
workaround
- Html.jQuery().Accordion().Name("navigation").Items() (parent) =>
- parent.Add().Text("Accordion").Content() () =>
%ul
%li= Html.ActionLink("Basic example", "Basic", "Accordion").Render()
Andrew
Knowing the codebase as well as you do... do u have any suggestions for how
fix this?