aumcode/nfx

JS Compiler: direct insertions into js code

Opened this issue · 3 comments

Please, extend syntax of JS Compiler to make insertions of source laconf into js code directly, like:

var dlg = new WAVE.GUI.Dialog({
  header: "Some Infromation",
  body: /*** div { h2="Header" {} p="Paragraph" {}  }  ***/
  ...
});

Did we not do this yet?

Now you can use:
var dlg = new WAVE.GUI.Dialog({
header: "Some Infromation",
body: "*#* div { h2="Header" {} p="Paragraph" {} } *#*"
...
});

Bug is found: statement with single quote ( '*#* ... *#*') is not parsed.
And multi-line code with "\" line break doesn't work.