Basic example templates of what you can accomplish when sending sending responsive content in Kivra.
This project is built using Parcel, with the help of PostHTML and SCSS. When compiled, the output is static self-contained HTML files.
Please refer to the official documentation for Responsive Content for information on how to send the content.
-
src/
– Source code – HTML and SCSS-
src/partials/
– Partial HTML files shared across templates -
src/templates/
– Base templates to be compiled into self-contained HTML files -
src/styles/
– CSS (using SCSS) to style the HTML
-
-
dist/
– Self-contained HTML templates
Install dependencies:
npm install
npm start
This will start a local server serving the HTML files in src/templates/
on http://localhost:1234
.
npm run build
This will build the templates from the src/templates/
directory into the dist/
directory.