@() @led(condition: String) = @{ "images/leds/" + (condition match { case "error" => "red-on.svg" case "warn" => "yellow-on.svg" case "good" => "green-on.svg" case "unknown" => "none.svg" case _ => "a" }) } @instrument(name: String, condition: String, status: String) = {