https://github.com/inventage/wicket-static-server
Resolve Wicket's template hierarchy and render all HTML parts as single static pages.
https://github.com/inventage/wicket-static-server
Last synced: 3 months ago
JSON representation
Resolve Wicket's template hierarchy and render all HTML parts as single static pages.
- Host: GitHub
- URL: https://github.com/inventage/wicket-static-server
- Owner: inventage
- License: mit
- Created: 2020-08-12T10:35:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T12:24:15.000Z (10 months ago)
- Last Synced: 2025-03-09T22:38:05.550Z (3 months ago)
- Language: JavaScript
- Size: 372 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Documentation
Resolve [Wicket's](https://wicket.apache.org/) template hierarchy and render all HTML parts as single static pages.
## Usage
- Install Node.js dependencies by `npm install`.
- Start static server by `npm run serve` or by `node ./node_modules/.bin/wicket-static-server --server`.
- Open [localhost:3000](http://localhost:3000) and browse [pages](/pages), [panels](/panels) or [dialogs](/dialogs).## Parameters
Use CLI parameters for easy configuration.
- Use `-h, --homepage` to show a specific html or markdown file as homepage.
- Use `-e, --expressRoot` to define a path from which additional static files are served.
- Use `-r` or `--reload` to add to all page bodies.
- Use `-c` or `--code` to format code wrapped in ``.…
- Use `--reloadPort` to define the port in the livereload script tag.
- Use `-s` or `--server` to start an express server.
- Use `--serverPort` to define the port for the express server.
- Use `-e, --templateRootExpansion` to define which templates are used to extend the templates. It must be a superset of --templateScope.
- Use `-t, --templateRoot` to define which templates should be resolved and listed.
- Use `-v` or `--verbose` to print more information during execution.# Template Tags
Special comments and Wicket tags are used to complete a page.
- `` is the placeholder to include successors's HTML.
- `` content is merged and included once per page.
- `` is the part of a template which is passed to its ancestors.
- `` is used to define a template's ancestor.
- `` is used to include panels.## Caution
- First load takes a moment to resolve and render all templates.
## Acknowledgment
This package was developed together with [Gridonic](https://gridonic.ch/) to decouple backend and frontend development.