Haml v5.2.1 Release Notes

Release Date: 2020-11-30 // over 3 years ago
  • It's time to face the facts that the last release was a LIE. I said we weren't going to release another version of Haml 5.x... and yet, here we are again.

    💻 "What's this all about?!?!", you must be screaming at your computer.

    👍 Well, our wonderful @k0kubun has given all of us a wonderful present– which is proper multiline-attributes support for Haml. No longer are we forced to either have super long lines or have kinda wonky spacing on our attributes.

    How it started:

      .messages-overflow-container{"data-simplebar": true}
        .messages{data: {controller: "chat-messages"}}
      .like-notification{data: {controller: "reaction-notification"}}
      - unless video.finished?
        .message-write{data: { "controller": "chat", "show-when-logged-in": true }}
          .chat-controls
            .write-area{placeholder: 'Send a message', contenteditable: true, role: "textbox", data: {action: "keydown->chat#chatBoxKeyDown", target: "chat.messageInput"}}
            = render "shared/reaction_button"
        .message-login-prompt{data: { "show-when-logged-out": true }}
          %button{data: {action: "authentication#showModal"}} Login To Chat
    

    How it's going:

      .messages-overflow-container{"data-simplebar": true}
        .messages{
          data: { controller: "chat-messages" }
       }
      .like-notification{
        data: { controller: "reaction-notification" } }
      - unless video.finished?
        .message-write{
          data: { 
            "controller": "chat", 
            "show-when-logged-in": true 
          }
        }
          .chat-controls
            .write-area{
              placeholder: 'Send a message', 
              contenteditable: true, 
              role: "textbox", 
              data: {
                action: "keydown->chat#chatBoxKeyDown", 
                target: "chat.messageInput"
              }
            }
            = render "shared/reaction_button"
        .message-login-prompt{data: { "show-when-logged-out": true }}
          %button{
            data: {
              action: "authentication#showModal"
            }
          } Login To Chat
    

    How about THAT! I don't know about you, but this is going to improve my markup by a huge margin. I am super thrilled to get this into our code at @veuelive!


Previous changes from v5.1.2

  • 🚀 Released on August 6, 2019 (diff).

    • 🛠 Fix crash in some environments such as New Relic by unfreezing string literals for ParseNode#inspect. #1016 (thanks Jalyna)