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)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
Perhaps initially. But eventually:
let
- define new observableconst
- define computed (i.e. has one or more dependencies)