The VM architecture in Glimmer made implementing rehydration pretty fun, with clear semantics. PR:https://github.com/glimmerjs/glimmer-vm/pull/549 …
getting an AST from Glimmer is pretty easy. I think it's even public API in Ember.
-
-
I'm trying to figure out how! Is there someone I should ask?
-
are we talking about buildtime or runtime? at build time something like require('@glimmer/syntax').parse(...)
-
Yeah that's the easiest.
-
sorry, seems to be preprocess(), not parse() example athttps://github.com/fkling/astexplorer/blob/master/website/src/parsers/handlebars/glimmer.js#L15 …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.