first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
define(["require", "exports", "./Stylesheet"], function (require, exports, Stylesheet_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderStatic = void 0;
/**
* Renders a given string and returns both html and css needed for the html.
* @param onRender - Function that returns a string.
* @param namespace - Optional namespace to prepend to css classnames to avoid collisions.
*/
function renderStatic(onRender, namespace) {
var stylesheet = Stylesheet_1.Stylesheet.getInstance();
stylesheet.setConfig({
injectionMode: Stylesheet_1.InjectionMode.none,
namespace: namespace,
});
stylesheet.reset();
return {
html: onRender(),
css: stylesheet.getRules(true),
};
}
exports.renderStatic = renderStatic;
});
//# sourceMappingURL=server.js.map