3 ms·
Cool hack. Though I'd definitely advise wanting to do this to Do The Right Thing™ and just put each thing in its own file.
by oblio 8y ago
Cool hack.
Though I'd definitely advise wanting to do this to Do The Right Thing™ and just put each thing in its own file.
- rcthompson 8y agoI imagine the common usage would be to write an ordinary python module and then just have a small block of inline python in the Rust code that imports and calls the module.
- k__ 8y agoYes, I think adding a programming language like this is a bit tricky. But using it to embed markup is really cool. https://github.com/bodil/typed-html https://github.com/bodil/typed-html