<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Mirvoda Sergey </title><subtitle type="html">randomThoughts.ForEach(blog.Add(though.ToString()));</subtitle><id>http://weblogs.asp.net/mirvodasergey/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mirvodasergey/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/mirvodasergey/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2008-06-02T20:27:00Z</updated><entry><title>Introducing MonoRail NHAML</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mirvodasergey/archive/2008/06/02/introducing-monorail-nhaml.aspx" /><id>http://weblogs.asp.net/mirvodasergey/archive/2008/06/02/introducing-monorail-nhaml.aspx</id><published>2008-06-02T14:27:00Z</published><updated>2008-06-02T14:27:00Z</updated><content type="html">&lt;h1 style="margin: 12pt 0cm 3pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="5"&gt;Introduction&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;&lt;span style="" lang="EN-US"&gt;&lt;font face="Times New Roman" size="3"&gt;It is about four months passed since &lt;/font&gt;&lt;a href="http://weblogs.asp.net/joestagner"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;Joe Stagner&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt; activated my Blog on &lt;/font&gt;&lt;a href="http://weblogs.asp.net/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;http://weblogs.asp.net&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt;. All that time I could not make a decision how to become a new community member, because the level of &lt;/font&gt;&lt;a href="http://null/weblogs.asp.net/fbouma"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;some&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt; &lt;/font&gt;&lt;a href="http://null/weblogs.asp.net/rosherove"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;other&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt; &lt;/font&gt;&lt;a href="http://null/weblogs.asp.net/astopford/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;people&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt; &lt;/font&gt;&lt;a href="http://null/weblogs.asp.net/scottgu/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt; so impressive, that very hard to be notable. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;font face="Times New Roman" size="3"&gt;Some time ago I found very interesting project &lt;/font&gt;&lt;a href="http://haml.hamptoncatlin.com/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;HAML&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt;. The idea behind this project is to make markup easy to read and fun to write. It very impressed me and I decided to implement View Engine for upcoming ASP.NET MVC Framework. Unfortunately (for me of course :)), it was already implemented by this &lt;/font&gt;&lt;a href="http://andrewpeters.net/2007/12/19/introducing-nhaml-an-aspnet-mvc-view-engine/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;guy&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Not a problem! I simply decided to port Andrew’s work to the Castle Monorail (ASP.NET MVC elder brother) and extended Andrew’s work a bit. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;h1 style="margin: 12pt 0cm 3pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="5"&gt;Here is a result of my (and Andrew) work.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;ol style="margin-top: 0cm;" type="1"&gt;
&lt;li class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Full HAML support – implemented by Andrew Peters&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="" lang="EN-US"&gt;&lt;a href="http://andrewpeters.net/2007/12/19/introducing-nhaml-an-aspnet-mvc-view-engine/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;http://andrewpeters.net/2007/12/19/introducing-nhaml-an-aspnet-mvc-view-engine/&lt;/font&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt; 
&lt;ol style="margin-top: 0cm;" start="2" type="1"&gt;
&lt;li class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;MonoRail Layouts, Helpers, Partial Support &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="" lang="EN-US"&gt;&lt;v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;img src="http://weblogs.asp.net/blogs/mirvodasergey/Images/LayoutAndPartials.png" ilo-full-src="http://weblogs.asp.net/blogs/mirvodasergey/Images/LayoutAndPartials.png" title="MonoRail NHAML" style="width: 854px; height: 683px;" alt="MonoRail NHAML" mce_src="http://weblogs.asp.net/blogs/mirvodasergey/Images/LayoutAndPartials.png" align="middle" height="683" width="854"&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt; 
&lt;p&gt;&lt;img src="http://weblogs.asp.net/blogs/mirvodasergey/Images/FormHelper.png" ilo-full-src="http://weblogs.asp.net/blogs/mirvodasergey/Images/FormHelper.png" title="MonoRail NHAML" style="width: 413px; height: 521px;" alt="MonoRail NHAML" mce_src="http://weblogs.asp.net/blogs/mirvodasergey/Images/FormHelper.png" align="middle" height="521" width="413"&gt;&lt;/p&gt;

&lt;ol style="margin-top: 0cm;" start="3" type="1"&gt;
&lt;li class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Support for Macros, Parameters, Dictionaries, Rescues&amp;nbsp;– you can even write c# in your View :)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&amp;nbsp;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;img src="http://weblogs.asp.net/blogs/mirvodasergey/Images/ViewComponentSupport.png" ilo-full-src="http://weblogs.asp.net/blogs/mirvodasergey/Images/ViewComponentSupport.png" title="MonoRail NHAML" style="width: 939px; height: 750px;" alt="MonoRail NHAML" mce_src="http://weblogs.asp.net/blogs/mirvodasergey/Images/ViewComponentSupport.png" align="middle" height="750" width="939"&gt; 
&lt;p&gt;&lt;img src="http://weblogs.asp.net/blogs/mirvodasergey/Images/macroSupport.png" ilo-full-src="http://weblogs.asp.net/blogs/mirvodasergey/Images/macroSupport.png" style="width: 928px; height: 487px;" mce_src="http://weblogs.asp.net/blogs/mirvodasergey/Images/macroSupport.png" align="middle" height="487" width="928"&gt;&lt;/p&gt;
&lt;h1 style="margin: 12pt 0cm 3pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="5"&gt;Source code and downloads&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;&lt;span style="" lang="EN-US"&gt;&lt;font face="Times New Roman" size="3"&gt;You can check out full code with samples form &lt;/font&gt;&lt;a href="http://w4x.unfuddle.com/svn/w4x_mrnhaml"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;http://w4x.unfuddle.com/svn/w4x_mrnhaml&lt;/font&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Username – user password – user&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt; 
&lt;h1 style="margin: 12pt 0cm 3pt;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;font size="5"&gt;Work is incomplete&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;span style="" lang="EN-US"&gt;&lt;font face="Times New Roman" size="3"&gt;There are many things that should be implemented – full test support, type cache for views, code clean up. If you are interested and want to implement such a feature – &lt;/font&gt;&lt;a href="http://www.ayende.com/Blog/"&gt;&lt;font color="#0000ff" face="Times New Roman" size="3"&gt;send me a patch for&lt;/font&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt; it &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family: Wingdings;" lang="EN-US"&gt;&lt;span style=""&gt;&lt;font size="3"&gt;:)&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fweblogs.asp.net%2fmirvodasergey%2farchive%2f2008%2f06%2f02%2fintroducing-monorail-nhaml.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fweblogs.asp.net%2fmirvodasergey%2farchive%2f2008%2f06%2f02%2fintroducing-monorail-nhaml.aspx" ilo-full-src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fweblogs.asp.net%2fmirvodasergey%2farchive%2f2008%2f06%2f02%2fintroducing-monorail-nhaml.aspx" alt="kick it on DotNetKicks.com" border="0"&gt;&lt;/a&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6242149" width="1" height="1"&gt;</content><author><name>w4x</name><uri>http://weblogs.asp.net/members/w4x.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/mirvodasergey/archive/tags/ASP.NET/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/mirvodasergey/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://weblogs.asp.net/mirvodasergey/archive/tags/.NET/default.aspx" /></entry></feed>