Build dynamic web pages with Lua and HTML.
Yes! It's that easy!
print(features[1])
Familiar
No new syntax to learn. Write plain HTML with Lua embedded in <lua> tags.
If you know HTML and Lua, you already know 90% of Silvermoon.
print(features[2])
Powered by Lua
Use Lua you already know with extra APIs provided by Silvermoon.
Meanwhile gaining performance from being powered by LuaJIT.
print(features[3])
Plug in
Drop into any FastCGI-compatible server.
Use LuaRocks packages and include external Lua files.
Silvermoon respects your decisions.
print(features[4])
More than web pages
Web pages, APIs, whatever.
Silvermoon is flexible enough to power your whole backend.
Frequently Asked Questions
How does Silvermoon work?
Silvermoon is a HTML preprocessor. It takes your source file, executes Lua code embedded in Lua tags, and outputs generated HTML.
Can I use external Lua packages?
Yes! Silvermoon supports external Lua modules and packages. This lets you reuse existing libraries and organize your project.
What version of Lua does Silvermoon use?
Silvermoon uses Lua 5.1 via LuaJIT. LuaJIT allows for faster code executes as it compiles Lua to native CPU instructions on the fly.
Can I contribute to Silvermoon?
Contributions are welcome! You can suggest features, report bugs, improve documentation or submit code changes. Help improve the Silvermoon preprocessor or the Silvermoon website.
I found a bug or other issue in Silvermoon
Click one of these links to file an issue for:
Silvermoon preprocessor
or the
Silvermoon website.