DEV Community

Discussion on: FLUURT: Re-inventing Marko

Collapse
 
peerreynders profile image
peerreynders • Edited

It looks like a hybrid of JS and XML, like markup that is actually capable of expressing logic.

One of the problems with JSX is that people treat it as markup even when it's only an "XML-like syntax extension to ECMAScript". Similarly here - it's not markup.

Other than that templating systems like Nunjucks (based on Jinja) can accomodate a lot of logic (for better or worse) - so the proposed syntax just seems to cut down on the braces and percent characters and is in line with Marko's philosophy: Marko is HTML re-imagined as a language.

Also, don't you think that the use of let/const as tags will introduce any confusion? From what I understand, they serve different purposes right?

Perhaps initially. But eventually:

  • let - define new observable
  • const - define computed (i.e. has one or more dependencies)