This is kind of funky - generally we would do:

    - if warn = scalable_warning(@application_type, @capabilities)
      %span.text-warning= scalable_warning

(use the space between the = and the body)