Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS Compiler: direct insertions into js code #49

Open
vlapchenko opened this issue Apr 5, 2017 · 3 comments
Open

JS Compiler: direct insertions into js code #49

vlapchenko opened this issue Apr 5, 2017 · 3 comments
Assignees

Comments

@vlapchenko
Copy link
Member

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 vlapchenko changed the title JS Compiler: anonymous JS Compiler: direct insertions into js code Apr 5, 2017
@itadapter
Copy link
Member

Did we not do this yet?

@panagushin
Copy link
Contributor

panagushin commented Apr 11, 2017

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

@vlapchenko
Copy link
Member Author

vlapchenko commented May 20, 2017

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

@vlapchenko vlapchenko reopened this May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants