Zolt
- 11 Devlogs
- 26 Total hours
This 0 year old zig web server still serves their response the old fashioned way
This 0 year old zig web server still serves their response the old fashioned way
so before all zolt app are written using .lua file and write to the response using echo which led to kind of bad dx so after the last ship there were some review on some kind of tsx like language so i been working on that and here zolt template build on top of go html/template with a lua block it will become a default way of writing app using zolt while .lua will be use for shared module and library
just deploy a new version of documentation site and the go rewrite is complete!
from the last update i also added
after the go rewrite i have now implement 3 core function back but with some changes from zig version so when the go merge it will be a breaking changes
i also implement require for loading module and bring back hol now as htmlkit
so yea looking forward to merge the go branch into main in a few days but it will 100% be a breaking changes not that who cared anyways except me cuz am the only one using it and now i have to fix my code
when i first set out to make zolt i figure it will be a good place to learn zig i mean it such a small project just a simple http server that execute lua. but then i started using it myself and kept needing more feature but sadly even tho this project started as a way to learn zig. i just didn’t really click with it thus when implementing feature i kept having to relies a lot on codex.
so i started a new branch call experimental-go that contain a go rewrite of zoltd plan to be as much backward compatible as possible but not fully as zig zoltd use luau while go zoltd use gopher lua but otherwise i will try and implement all function in zig
even tho the project is being rewritten in go. the name will still remain zolt cuz golt sound worse
i just implement a lua runtime based on gopher-lua and implement 2 function echo() and print()
so from the last ship someone suggest that there should be a tsx like syntax that allow you to write html easier and i agree with that writing the whole layout in echo is a pain so i make hol a pretty simple html builder that ship with zolt so you can just import it anywhere without having to download it
and am looking forward to add more feature such as native support for each element instead of H(“h1”) you can just do h1(“Header”) something like that
Feedback
Hi perr! That's an awesome project!
If you have any questions, ask them in #ask-the-shipwrights
Shipwright walkthrough
Feedback
When we said change the banner, we meant on the Stardance project page. The Stardance banner has to be a screenshot of the demo in action. Since the docs are made with the project, you can use a screenshot of the docs as the Stardance project banner. I'll be using the same video as last time since this is a minor issue that can be fixed on the Stardance project page alone.
Shipwright walkthrough
Feedback
Very cool! But the banner has to be a screenshot of the demo running. (Just put the banner on the docs page as a "quick start guide" and reship, that would count I think)
Shipwright walkthrough
Feedback
Yooo! This project is genuinely sooo cool, i really liked it, but your readme requirements do not match, please add more details to it such as the features etc. Thanks
Shipwright walkthrough
i have added new entry to documentation such as installation using the new install script and your first zolt web guide along with lua api reference.
for the zolt i have move status() and header() api into response.status() and response.header() to align more with request.path() and change webroot from current working dir to config parent dir.
so i been working on a documentation for zolt with guess what zolt
well the doc right now is pretty barebone with just intro and install for now but it is made with zolt,html,css,js
i also use hotwire turbo and stimulus, and it also use this cute font by creators of grug. (https://handdrawn.software/grug/)
you can access the doc page here
https://zolt-doc.perr.dev
so from the last time i added new api such as
with require you can now create function that help you build, for example i created a render module that help me to render html easier without having to deal with writing html tags manually
apart from new api there has been a lot of changes behind the scene such as concurrency and performance improvements
for the next devlog i will be working on adding api support for query params , form data , json body , and cookies so that you can build more complex web app with zolt!
not only that am working on a documentation site that will also serve as an example on how to build web app using zolt
Zolt so this is php but with lua instead. well i wanted to learn zig and lately i been working on php project, and i just really love how stuff seem so simple but i kinda hate php syntax and the server around it. so yea here zolt it a zig web server that read the lua file you are requesting via query path then use luau to run it and give you the response. right now it just a plain text response but more coming!