Site Search
Homepage of Otaku No Zoku
Complete Archives of Otaku No Zoku
About Otaku No Zoku
Subscribe to Otaku No Zoku
Bookmark Otaku No Zoku

HAML gets duck punched :

Why the hell does html_safe not work in Nanoc?!?


Shakes fist at Nanoc “safely” escaping the angled brackets all the time.

HAML! Why are you escaping things which should not be escaped!?!

*shakes fist at HAML*

Hmm, not sure if I am missing something fundamental or if HAML is just broken in that way, but I just had to duck-punch one of the helper classes so that I can use “unsafe” HTML in attribute tags.

Well that was several hours sunk.

But… I win!

I’d rather use a duck-/monkey-punched hack in a helper class than a brute-forced workaround in my direct source code.

Liked This Post?

Subscribe to the RSS feed or follow me on Twitter to stay up to date!