Blimster/deact

Works but lacks an UI markup compiler

Closed this issue · 1 comments

Would be great if it had an UI compiler
just like JSX is used for writing ui
but what about flutter like UI components like

Div(
  id: "elementID",
  child:Button(className: 'css_classname', style: Style()),
);

would be great

Hi @pacifio,

as I mentioned here, I do not plan to implement something like JSX in the near future, because it is too much effort for a single developer.

Can you explain your suggestion about Flutter-like UI components? The correct syntax for your suggestion looks like this:

div(
  id: 'elementID', 
  children: [
    button(
      className: 'css_classname', 
      style: 'some styling')]);

The only difference to your suggestion is, that you have to supply the value for the style property as a string and not as a Style object. It is this, what wish to be added?