Template used for pages on fwdekker.com
https://static.fwdekker.com/lib/template/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 weeks ago | |
---|---|---|
src | 3 months ago | |
.editorconfig | 3 years ago | |
.gitattributes | 3 years ago | |
.gitignore | 3 years ago | |
Gruntfile.js | 4 months ago | |
LICENSE | 1 year ago | |
README.md | 4 months ago | |
package-lock.json | 3 weeks ago | |
package.json | 3 weeks ago | |
tsconfig.json | 12 months ago |
README.md
FWDekker Template
The base template for pages on fwdekker.com.
Contains utilities for
- settings up header, footer, and navigation,
- interacting with local storage (and an in-memory variant for testing), and
- form validation.
Simply import template.js
and template.css
to get it working.
All JavaScript functionalities are exposed using the window.fwdekker
object.
Some functionalities are automatically executed after configuring some <meta>
tags in the HTML.
For example, set <meta name="fwd:nav:target" content="#nav" />
to automatically put the navigation bar in the #nav
element.
All meta-tag behaviour is opt-in.
Read the files' individual documentation for more information.
Development
Requirements
Setting up
# Install dependencies (only needed once)
$> npm ci
Building
# Build the tool in `dist/` for development
$> npm run dev
# Same as above, but automatically rerun it whenever files are changed
$> npm run dev:server
# Build the tool in `dist/` for deployment
$> npm run deploy