Skip to content

Powerful Mounts Are Here πŸ”₯

Choose a tag to compare

@Ethosa Ethosa released this 20 May 13:53
· 1161 commits to master since this release

Since v0.22.0 you can use powerful mounting with powerful routing πŸ₯³

Mount declaration 🎈

mount Settings:
  "/":
    ....

mount Profile:
  "/":
    ...
  
  mount "/settings" -> Settings

Mount usage πŸ”₯

serve(...):  # You can use appRoutes for SPA also πŸ™‚
  mount "/profile" -> Profile
  
  "/":
    ...

Mounts is REALLY powerful ⚑

You can use path params in mounting:

serve(...):  # or appRoutes
  mount "/<arg>/$id" -> SomeMount

Changelog

  • Add mounting πŸ”₯
  • Add return statement for SSG apps ✨
    serve(...):
      "/json":
        return {"response": "..."}
      "/html":
        return buildHtml:
          ....
      "/text":
        return "Hello, world!"