Skip to main content

Recently Updated Pages

Input

Coding Litestar Webserver

required (positional) parameteres optional parameters (?foo=bar) read user cookies Post request w...

Updated 1 week ago by BurnySc2

OOB Swap

Coding HTMX

With OOB Swap I mean swapping multiple elements at once, which may come from multiple template fi...

Updated 1 week ago by BurnySc2

Svelte Concepts

Coding Svelte & Typescript

Basics Variables https://svelte.dev/docs/svelte/$state https://svelte.dev/docs/svelte/$derived le...

Updated 2 months ago by BurnySc2

Typescript

Coding Svelte & Typescript

Types Usually when defining types, you would want to create your own types file types.ts <prefix>...

Updated 2 months ago by BurnySc2

Testing (playwright)

Coding Testing

How to test Click X, then Y, then Z. Finally, assert that XYZ is visible on the page. Finding ele...

Updated 3 months ago by BurnySc2

Testing (pytest)

Coding Testing

Intro Additional info https://docs.pytest.org/en/stable/explanation/anatomy.html Initial setup In...

Updated 3 months ago by BurnySc2

Basics

Coding SQL Tips and Tricks

Snippets Check if database exists Postgres SELECT EXISTS ( SELECT 1 FROM pg_database ...

Updated 3 months ago by BurnySc2

HTML and JS

Coding HTMX

You can use // @ts-check at the top of a <script> tag to get typescript support in VScode. Use ...

Updated 3 months ago by BurnySc2

Test strategy

Coding Testing

What to test? In the other chapters it is described how to test (pytest, playwright for frontend,...

Updated 3 months ago by BurnySc2

Testing (svelte)

Coding Testing

TODO

Updated 3 months ago by BurnySc2

HTML

Coding Linting

HTML linting can be done with djlint

Updated 3 months ago by BurnySc2

HTML

Coding Formatting

Auto format with djlint To auto-format HTML files, you can run uv run djlint . --reformat Ignore...

Updated 3 months ago by BurnySc2

Jinja - useful commands

Coding HTMX

https://jinja.palletsprojects.com/en/stable/templates/ TODO if elif else for loop if defined

Updated 3 months ago by BurnySc2

Tips and Tricks

Coding SQL Tips and Tricks

Data types Window functions Window functions are functions that grab additional data per row, e.g...

Updated 3 months ago by BurnySc2

Postgres - Piccolo (Python) hints

Coding SQL Tips and Tricks

Piccolo column types Postgres column types Postgres type Python type Piccolo type Python examp...

Updated 3 months ago by BurnySc2