Search
Items tagged with: SmallTech
auto-encrypt
Automatically-provisioned TLS certificates for Node.js servers using Letās Encrypt.Codeberg.org
Web Numbers
Domains? Where weāre going, we donāt need domains! Until the end of this year, the only way to have a secure web site is to have it accessible via a domain name. That, however, is changing.Aral Balkan
That feeling when your renderer can handle a component that outputs HTML inside link text in Markdown thatās embedded in HTML.
(Yes, Iām bragging.)
#Kitten #SmallWeb #SmallTech #markdown #HTML #components #web #dev #JavaScript #taggedTemplateString #rendering
If I do say so myself, I do love expressive I can be with Kitten.
This is me injecting raw HTML markup into a Markdown code block in a Kitten Markdown page to highlight specific lines in a code block¹.
(The string interpolation of the HTML as an array is a hack that bypasses Kittenās default sanitisation and should only be used with trusted content.)
PS. Iām going through all the tutorials on the site to update them to reflect the current state of Kitten after the three-month breaking-change update Iāve been working on.
¹ kitten.small-web.org/referenceā¦
#Kitten #SmallWeb #SmallTech #web #dev #Markdown #HTML #JavaScript #JS #stringInterpolation
TL; DR: This is all the code you need in Kitten¹ to make a *persisted* counter that streams interface updates to the browser. (Put it into a file called index.page.js in a folder all by itself and run `kitten`.)
Add the following two lines inside the `<main>` tag, if you also want it to look good:
```html
<page css>
<style inline>@scope { div { font-size: 3em; } }</style>
```
#Kitten #SmallWeb #SmallTech #web #dev #HTML #CSS #JavaScript
So Iām updating the Kitten documentation, tutorials, videos, etc., in preparation for the major (breaking change) release Iāve been working on for the past few months and, as part of that, I had to set up my streaming/recording setup again as the layout of my room changed and I recorded an updated Kitten Counter video yesterday in which I made every mistake I could in 12 minutes (so Iāll be recording it again). But here it is a a preview (and also to show that no, none of us gets it right the first time. Any polished video you see is the result of meticulous planning and multiple iterations) :)
(This video doesnāt show the new stateful components. I will be recording new videos about that.)
#Kitten #SmallWeb #SmallTech #web #dev #HTML #CSS #JavaScript
A demonstration of how to build a simple counter using the latest Kitten
In this example, we build a simple counter with an increment and decrement button and wire it up to Kittenās built-in JavaScript Database (JSDB).Vimeo
