I’ve been working in/learning haml for an app I don’t normally work on, but have been helping out doing the ui/ux for. I am also obsessed with the musical Hamilton.

Here is a dumb thing I did:
Screen Shot 2015-12-07 at 1.49.32 PM
If you also want to be #ham4haml, but like me don’t actually know how to write haml, here’s how you do it:
– take a quick look at the docs
– install the haml gem
– create a file, hamilton.haml
– In a console, run
template = File.read('hamilton.haml');
haml_engine = Haml::Engine.new(template);
output = haml_engine.render;
puts output;

Screen Shot 2015-12-07 at 1.50.33 PM

~~ there u go ~~


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s