- Backend-Driven UI: The backend is the primary source of truth. It drives frontend state and logic by sending HTML patches, signal updates, or executable scripts to the client.
- Hypermedia Approach: User actions trigger requests to the backend, which responds with changes to the UI, effectively determining the next set of possible user interactions.
- Declarative Attributes: Use data-* attributes in HTML to handle all frontend reactivity, event handling, and communication with the backend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| </template> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use an ARM64 base image (e.g., Ubuntu for ARM64) | |
| FROM dtcooper/raspberrypi-os:bookworm | |
| # Set environment variables for cross-compilation | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install necessary build tools, cross-compilers, and Wails dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| BDF to Pimoroni bitmap font converter | |
| Converts BDF bitmap fonts directly to Pimoroni bitmap font format. | |
| BDF (Bitmap Distribution Format) is already a bitmap format, so this | |
| doesn't require a TTF/WOFF render-to-bitmap step. | |
| Usage: | |
| python3 bdf2pimoroni.py -i input.bdf -o output.hpp -v variable_name |
You are an expert in building modern web applications using Datastar (a hypermedia-driven reactive framework) with Go backends. You follow these principles and patterns based on Datastar v1.0.0-RC.6 and the official Go SDK.
Requirements: Go 1.24+ for the Datastar Go SDK.