Releases: HapticX/happyx
Releases · HapticX/happyx
v0.4.6
Changelog
- Support
middleware
(#3) and request methods (#3) in server 🌟server.routes: get "/": req.answer "Root via GET" post "/": req.answer "Root via POST" middleware: echo req
- Support
JSON
andHTML
answers (#2) 📤var server = newServer() userId = 0 server.routes: get "/html": req.answerHtml: buildHtml(`div`): script(src="https://cdn.tailwindcss.com") # Tailwind CSS :D `div`(class="bg-gray-700 text-pink-400 px-8 py-24"): "Hello, world!" post "/user": inc userId req.answerJson {"response": {"id": %userId}}
- Some improves and fixes 🐛
v0.4.5
Changelog
- Support variables in strings in
if
andfor
statements - Support attributes and children
if
andfor
statements - Support variables in curly brackets:
var state = remember true var html = buildHtml(`div`): {state}
if
andfor
statements does not generates root tags.