marko
Version:
UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.
20 lines (10 loc) • 320 B
JavaScript
;module.exports = function getRenderId($global) {
if (!("renderId" in $global)) {
$global.renderId =
$global.componentIdPrefix || $global.widgetIdPrefix || "s";
// eslint-disable-next-line no-constant-condition
}
if ($global.renderId !== "s") {
return $global.renderId;
}
};