Happyx

Latest version: v4.7.4

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 11 of 13

0.15.1

Changelog
- variables in `SSG` routes:
nim
serve(...):
var counter = 0
get "/":
"counter = {counter}"
post "/":
inc counter
"success"

- improve cycle scopes in `buildHtml` macro:
nim
for i in 0..10:
tButton:
"click me"
click:
echo i

- fix attributes in `buildHtml` macro:
nim
tButton(myAttr="val"):
myAttr1 = "other val"
click:
echo "click is onclick attr"

0.14.0

New Path Param Syntax 🎴
`{arg:type}` -> `$arg:type`

But old stynax available still

Optional And Default Path Params ✨
`{arg?:type}` or `$arg?:type` can match some or nothing. Its has default value depend on `type`
`{arg:type=val}` or `$arg:type=val` will work like without `=val` but default value is `val`.

Added a new `bool` type for path params also.

Default Type In Path Params 🍍
`{arg}` or `$arg` will create string variable
Its just alias for `{arg:string}`

New Alternative HTTP Server ⚡
[microasynchttpserver](https://github.com/philip-wernersbach/microasynchttpserver) uses when you compile with `-d:micro`

0.10.1

Changelog
- Support WebSockets in `SSG` part 🌐
nim
serve("127.0.0.1", 5000):
ws "/ws":
await wsClient.send("Hello, world!")

- Support HCR in SPA with `hpx dev --reload` command 🎉

0.9.0

Changelog
- Support `build` comand in CLI.
In root of your SPA project you can call `hpx build` and get standalone HTML and JS files.
- Improve `create` command in CLI.
Now when SSG project creates, you can choose template version.
- Some fixes

0.8.0

Since version 0.8.0 **HappyX** Provides own CLI tool that allows to create and serving projects written in **HappyX**

Changelog
- `CLI` 🔧
Two commands available now:
- `hpx create`: create HappyX project and (SPA/SSG).
- `hpx dev`: serving HappyX SPA project.
- `templates` 👔
Since version 0.6.0 HappyX support templates via [`nimja`](https://github.com/enthus1ast/nimja) template engine.

0.5.2

Default values in components is available now🎉
nim
component MyComponent:
counter: int = 100

...
"/":
component MyComponent
component MyComponent(counter = 10)

Page 11 of 13

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.