Replies: 2 comments
-
Other use cases:
|
Beta Was this translation helpful? Give feedback.
-
This is definitely a possible use case, but not one that Scalatags supports right now. As written, Scalatags is very much designed to be "write only": you create a bunch of in-memory data structure, and stream it out to a It's definitely possible to insert an AST in there, which would perhaps not be that difficult given our existing support for custom backends. But it would take some work designing that AST to make it ergonomic and useful |
Beta Was this translation helpful? Give feedback.
-
One of strong points of scalatags is ability to traverse, extend and transform assembled model before rendering. Unfortunately it is hacky right now - not everything is public and not everything is designed to be accessed by user code.
It could be nice to cleanup scalatags model to be proper AST (but still open for extension). Use cases:
Beta Was this translation helpful? Give feedback.
All reactions