Last week we released our first update to Hammer For Mac, under our management of the product. We have an active group of Hammer Beta Testers, who have put it through its paces and so we felt ready release the update to you all.
Last week we quietly tried to roll this out (in part because I really didn't know what was going to happen, and if it would work). It didn't.
So we fixed it and tried again today and pleased to say, version 5.1.4 of the hammer gem is now available.
Hammer for Mac is made up of two important parts - the Mac OSX app and our Hammer compiler (which happens to be an open-source gem - did you know?).
Whilst both aspects haven't been updated in some time, we're now actively working on both.
The Mac OSX app is currently on version 1.6.2
The Hammer gem is now on 5.1.4 after this release.
Whilst the Mac App requires us to publish a new build to the Mac App Store, updates to the Hammer compiler can be done automatically, and there's currently no interface for you to manage, approve, opt out of receiving these updates. This post relates only to an update of the Hammer Compiler.
How does it work?
You don't have to do anything. Hammer will automatically detect the new release, download and install it. It can take a few minutes, depending on your network connection.
When you force a rebuild of your project (to clear the cache), you'll see that the hammer gem is updated by scrolling to the bottom of the file list view, which should say Version 5.1.4.
What did we update?
Here's what was in the changelog for this release:
Update Core Libraries:
HAML - 4.05 to 4.0.7
Bourbon - 4.0.2 to 4.2.4
Coffee Script - 1.8.0 to 188.8.131.52
Kramdown (markdown superset) - 1.3.1 to 1.8.0
Sass - 3.4.6 to 3.4.17
Neat - to 1.7.0
Slim Support! - We didn't want the update to JUST be about updating the core underlying technologies that you've become used to. We wanted to add something new. Hammer has supported the HAML templating language for some time, but, we think Slim is much nicer. It's not a new thing, that's for sure. But, it wasn't in Hammer and it should've been - so we made it so.
We personally use it a lot and it's very popular in the Ruby (Rails) world. Have a look at the Slim documentation. For those of you just cringed at the thought of reading some documentation (I could almost sense it) here's a short slide deck of why Slim is kinda cool, particularly compared to Haml and ERB.
In my opinion, the speed improvements over Haml and nicer syntax is enough to make it my preferred choice.
If you want to give slim a quick try, create a new file in your Hammer project, with the .slim extension.
And add the following example code (make sure to add a favicon image to your project or delete the hammer tag from the code):