0.0.12 • Published 9 months ago

@xylit/ssg v0.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
9 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

9 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.9

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.1

10 months ago