Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xylit/ssg

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylit/ssg

A pure static site generator

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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>`;
);

Keywords

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc