0.0.12 • Published 6 months ago

@xylit/ssg v0.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Xylit SSG

Xylit SSG is a powerful static site generator:
Being Less Bloated... Being More Straightforward!

Getting Started

Please follow the official documentation.

.ssg.js-Format

SSG files are JavaScript files that are slightly transformed before execution. This is necessary in order to perform a dynamic code analysis.

Consider this SSG file

const css = style.module.css`
  .headline {
    color: red;
  }
`;

export default html`<h1 class=${css.headline}>Hello Xylit</h1>`;

Converted, it looks similar like this:

import * as SSG from "@xylit/ssg";
const { html, style } = SSG.init(import.meta);
export const meta = import.meta;

const css = style.module.css`
  .headline {
    color: red;
  }
`;

export default SSG.defineComponent(import.meta, () =>
  html`<h1 class=${css.headline}>Hello Xylit</h1>`;
);
0.0.12

6 months ago

0.0.10

7 months ago

0.0.11

7 months ago

0.0.9

7 months ago

0.0.3

7 months ago

0.0.2

8 months ago

0.0.8

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.1

8 months ago