Comments (7)
FWIW, in monadic-html we have a Scala.js compatible version of scala-xml implemented in 200 LOC with some additional type-safety for what can be embedded in element or attribute position. See https://github.com/OlivierBlanvillain/monadic-html/blob/master/monadic-html/src/main/scala/scala/xml/xml.scala
If you drop the type-safety features, it's ~100 LOC.
Note. This does not include an xml pretty printer.
from korolev.
@olafurpg wow, looking great. Do you have a plan to publish your scala.xml
implementation as single artifact both for scala.jvm and scala.js?
from korolev.
I don't think we'll publish it as a standalone library for jvm+js, it's at least outside the scope of monadic-html.
It should be trivial to move it to a separate repo however and publish for jvm + js. It's a single file, MIT licenced. The only shame is that it occupies the scala.xml
global namespace. You'd have to remove the mhtml specific typeclass instances for Xml{Element,Attribute}Embeddable. We keep the instances on the companion objects to avoid forcing an import on users.
from korolev.
👍
from korolev.
We can discuss later about consolidating implementations if namespace conflicts end up being a problem.
from korolev.
Out of scope of Korolev. Moved to https://github.com/fomkin/levsha
from korolev.
from korolev.
Related Issues (20)
- Add way to global handle Exceptions in `event()`
- `loading` is not an AttrDef HOT 1
- Default `.mkString` performance regression
- File download streaming does not work using ZIO Http HOT 5
- adding the `required` AttrDef to `input` results in compiling error HOT 1
- Not working on korolev 1.3.0 + http4s 0.23.12 HOT 3
- events published by extensions are not visible by other extensions HOT 1
- Long polling sessions not close correctly
- syncTransition doesn't work properly
- Add transitionAsync
- Monocle interop
- Composable routers HOT 1
- ZioHttpExample issue HOT 2
- SessionService block threads in ExecutionContext for every live session
- Request timeout encountered for request [GET /bridge/web-socket/... Empty] HOT 1
- Akka-http interop freezes after akka.stream.StreamTcpException
- java.util.ConcurrentModificationException stack trace
- State buffering work incorrect with Future as Effect backend
- Regression, nothing work in Safari 12
- Regression: infinity reconnect in Safari (iOS)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from korolev.