It seems I can't use '-' blocks beneath ':' blocks, for instance:

:javascript
  var x = 0;
  - #{ "var y = " ~ d_variable ~ ";" }
  var arr = [
  - foreach(x; things)
    #{ x ~ "," }
  ];


You get the idea... these don't seem to be getting executed, they're just pasted verbatim into the javascript.
Is there a better approach?