Coding and Dismantling Stuff

Don't thank me, it's what I do.

About the author

Russell is a .Net developer based in Lancashire in the UK.  His day job is as a C# developer for the UK's largest online white-goods retailer, DRL Limited.

His weekend job entails alternately demolishing and constructing various bits of his home, much to the distress of his fiance Kelly, 3-year-old daughter Amelie, and menagerie of pets.


  1. Fix dodgy keywords Google is scraping from my blog
  2. Complete migration of NHaml from Google Code to GitHub
  3. ReTelnet Mock Telnet Server à la Jetty
  4. Learn to use Git
  5. Complete beta release FHEMDotNet
  6. Publish FHEMDotNet on Google Code
  7. Learn NancyFX library
  8. Pull RussPAll/NHaml into NHaml/NHaml
  9. Open Source Blackberry Twitter app
  10. Other stuff

An Announcement - I've Adopted NHaml!

Hi all,

A really quick blog post, to make a quick (and for me very, very happy) announcement - I've been given the opportunity to adopt the currently dormant NHaml project, a .Net port of the popular Haml Ruby markup language.

This is the first opportunity I've had to work on an established open-source project such as this, and while what's been built is impressive stuff, there's clearly a lot of work to catch up with the current Ruby implementation! Fortunately I've got a good clear initial target to aim for, thanks to the hugely useful Haml Spec project.

Why NHaml?

My interest in NHaml came about as a result of my checking out some of the new micro .Net web frameworks, particularly Nancy FX and Jessica (whose site is currently down!) These micro frameworks seem perfectly suited to a micro markup language such as Haml, indeed there was at one point support for NHaml baked into Nancy, but due to the lack of activity on the NHaml project this support was dropped.

I've also got a long and distant history as a designer, and the Haml language seems beautifully suited to the small but CSS heavy sites I've got in mind. In fact, I can see FhemDotNet becoming my first NHaml based site, coupled with Nancy because of the potential it offers for the app to self-host without the IIS dependency.

A quick starter for 10, NHaml can take the following HTML code:

<div id="profile">
  <div class="left column">
    <div id="date"><%= print_date %></div>
    <div id="address"><%= current_user.address %></div>
  <div class="right column">
    <div id="email"><%= %></div>
    <div id="bio"><%= %></div>

And boil it down to the following:

    #date= print_date
    #address= current_user.address

And finally, I hope I can add a lot to the project. I can already see some ways to make the learning curve a little shallower for anyone else working on the code, I can see an opportunity for a little bit of decoupling, and some improvements to the unit tests to help accelerate the implementation of more parts of the Haml spec.

Of Course...

Of course I should acknowledge there's already been an evidently considerable amount of work put into the project by several people, the truth be told I don't know enough about GitHub yet to get any kind of list together, but special mention due to Simon Cropp for helping me get up and running with the project with minimum fuss!

Permalink | Comments (4)

Comments (4) -

NickC United Kingdom

Monday, November 21, 2011 2:46 PM


Hi Russel,

Just wanted to ask as you bask in the latest load of work you have created for yourself with NHaml whether you think you'll make anymore progress on the FhemDotNet project over the next few months?

Its a purely selfish request, having invested £700 on househeat (FS20) kit throughout my house I now want to buy a PC interface and the right home automation software with vague intentions to control beyond the FS20 based heating and water to lighting, alarms, door locks and the hoover (irobot)....

Wishing you well


Nick C

russell United Kingdom

Monday, November 21, 2011 8:19 PM


Hi Nick,

I do still have the FhemDotNet project as a priority, certainly now that winter's setting hold here! Once the initial NHaml re-release is out the door, I'll be moving my attention squarely back in that direction. Smile

Best regards,


NickC United Kingdom

Thursday, December 1, 2011 8:52 AM


good to hear - good luck!

Jason Bunting United States

Wednesday, October 10, 2012 12:04 AM

Jason Bunting

Any updates on your adoption? A coworker and I were just talking about the potential to use NHaml on a project, so I'd love to know if there will be continued development/support for this, notwithstanding it being open-source.

Add comment

  Country flag

  • Comment
  • Preview