JSPM

@isotope/prototope-server

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q58155F
  • License MIT

Server-Side Rendering (SSR) implementation for Prototope

Package Exports

  • @isotope/prototope-server

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@isotope/prototope-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Prototope Server-Side Rendering

npm (scoped) npm npm bundle size (scoped) Discord

This package contain code for Prototope's SSR renderer implementation (@isotope/prototope-server). For more details about its usage, check out the docs.

Installation

npm install @isotope/prototope-server

Usage

import { bgColor, h, m, w } from "@isotope/prototope";
import { PrototopeServer } from "@isotope/prototope-server";
import { createStringView } from "@isotope/server";

const view = createStringView("body");
const { node, getCSS } = view.$(PrototopeServer());

node.div([bgColor("primary"), h(8), m(2), w(8)]);

const css = getCSS(); //
const str = `${view}`; // <body><div><div class=""></div></div></body>