Reputation: 101
I'm not sure if the question is well-posed as english is not my mother tongue. Is it possible to connect lua and javascript together? I did not find anything about that yet.
Or is it possible e.g. in a html-file to script with both languages like
<html>
<head>
</head>
<body>
<script></script>
<?lsp
?>
</body>
</html>
and maybe to share information between those languages?!
or ist it maybe possible to use lua in js or js in lua? like
<script><?lsp ?></script>
<?lsp
<script></script>
?>
Upvotes: 5
Views: 12439
Reputation: 827
You have a few options for Lua usage on the front-end (this is probably what you're aiming for as you'd like to connect/replace JS with Lua):
There is some interesting WASM stuff in the works, like:
For back-end there are even more options. Most noticeable are probably:
I've listed just a few. There is a lot.
Upvotes: 13