nfx icon indicating copy to clipboard operation
nfx copied to clipboard

JS Compiler: direct insertions into js code

Open vlapchenko opened this issue 8 years ago • 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" {}  }  ***/
  ...
});

vlapchenko avatar Apr 05 '17 09:04 vlapchenko

Did we not do this yet?

itadapter avatar Apr 06 '17 01:04 itadapter

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

panagushin avatar Apr 11 '17 16:04 panagushin

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

vlapchenko avatar May 20 '17 16:05 vlapchenko