diff --git a/bs/docs.js b/bs/docs.js index 9836d29..ea67131 100755 --- a/bs/docs.js +++ b/bs/docs.js @@ -2,7 +2,7 @@ /* jshint esversion: 11,-W097, -W040, module: true, node: true, expr: true, undef: true *//* global echo, $, pipe, s, fetch, cyclicLoop */ echo("Building static documentation files…"); echo("Preparing…"); -import { path_target, pages as pages_registered, styles, dispatchEvent } from "../docs_src/ssr.js"; +import { path_target, pages as pages_registered, styles, dispatchEvent, t } from "../docs_src/ssr.js"; import { createHTMl } from "./docs/jsdom.js"; import { register } from "../jsdom.js"; const pkg= s.cat("package.json").xargs(JSON.parse); diff --git a/docs/global.css b/docs/global.css index 7842668..a658cc0 100644 --- a/docs/global.css +++ b/docs/global.css @@ -145,16 +145,14 @@ main > *{ --shiki-token-punctuation: var(--code); --shiki-token-link: #EE0000; white-space: pre; - - tab-size: 2; + tab-size: 2; /* TODO: allow custom tab size?! */ overflow: scroll; } .code[data-js=todo]{ border: 1px solid var(--border); border-radius: var(--standard-border-radius); margin-bottom: 1rem; - - margin-top: 18.4px; + margin-top: 18.4px; /* to fix shift when → dataJS=done */ padding: 1rem 1.4rem; } .example{ diff --git a/docs/index.html b/docs/index.html index e50d02b..ac682d9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,4 +19,4 @@ document.body.append( }) ) ); -
The library introduces a new “type” of variable/constant called signal allowing us to to use introduced 3PS pattern in our applications. As you can see it in the example above.
Also please notice that there is very similar 3PS pattern used for separate creation of UI and business logic.
The 3PS is very simplified definition of the pattern. There are more deep/academic definitions more precisely describe usage in specific situations, see for example MVVM or MVC.