@inventage/wicket-static-server
v1.1.6
Published
Resolve Wicket's template hierarchy and render all HTML parts as single static pages.
Readme
Documentation
Resolve Wicket's 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 serveor bynode ./node_modules/.bin/wicket-static-server --server. - Open localhost:3000 and browse pages, panels or dialogs.
Parameters
Use CLI parameters for easy configuration.
- Use
-h, --homepageto show a specific html or markdown file as homepage. - Use
-e, --expressRootto define a path from which additional static files are served. - Use
-ror--reloadto add to all page bodies. - Use
-cor--codeto format code wrapped in<pre><code class="language-js">…</code></pre>. - Use
--reloadPortto define the port in the livereload script tag. - Use
-sor--serverto start an express server. - Use
--serverPortto define the port for the express server. - Use
-e, --templateRootExpansionto define which templates are used to extend the templates. It must be a superset of --templateScope. - Use
-t, --templateRootto define which templates should be resolved and listed. - Use
-vor--verboseto print more information during execution.
Template Tags
Special comments and Wicket tags are used to complete a page.
<wicket:child>is the placeholder to include successors's HTML.<wicket:head>content is merged and included once per page.<wicket:extend>is the part of a template which is passed to its ancestors.<!-- extend-page … -->is used to define a template's ancestor.<!-- include-panel … -->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 to decouple backend and frontend development.
