mirror of
https://github.com/moigagoo/sauer
synced 2026-01-09 17:51:08 +00:00
No description
| demo | ||
| src | ||
| .gitignore | ||
| changelog.md | ||
| LICENSE | ||
| README.md | ||
| sauer.nimble | ||
Sauer
Sauer is a command-line scaffolder for Kraut-powered Karax SPAs.
Installation
Install Sauer with Nimble:
$ nimble install -y sauer
or add to your .nimble file:
requires "sauer >= 1.0.0"
Usage
- Generate a new Nim project with
nimble init. - In the project directory, run
sauer init. - Build the app by running
nimble makeorsauer make. - See the app in action by running
nimble serveorsauer serveand openinghttp://localhost:1337/app.html#/"in your browser. - To add a new page, run
sauer page new mynewpage --route="#/my/new/location/"and rebuild the app. You should now see your page onhttp://localhost:1337/app.html#/my/new/location/. - To add a page with URL params, use placeholders:
sauer page new cat --route="#/cats/{catName}/" - During development, run
sauer make --watch --serveto automatically rebuild your app when it's source is updated and serve it locally.