Skip to content
TileDownSite version v0.5.24

A log window that follows its file

TileDown 0.14.0 adds live true to the terminal tile, so a window with a log file as its source follows the file while the page is open, with no reload.

TileDown 0.13.0 gave the terminal tile a file source and a window you scroll by hand. 0.14.0 lets that window follow the file while the page is open.

:::tile terminal
style: manual
lines: 20
source: board.log
tail: 500
title: board.log
live: true
:::

live: true goes with source and style: manual. It is an explicit opt-in: without it the tile has no script, as before.

How it works

The page carries one small script, the same for every live tile. Once a second it asks the page’s own origin, at one path (/_td/log/), for the lines after the point it has read to, and adds them to the window. Nothing is loaded from anywhere else, and a page with no live tile carries no script.

  • tiledown serve answers the question, for the files the build listed and no others, only inside the content folder, and only to GET. A site deployed as static files has no answer: its live tile shows the lines of the build and nothing more. That is why the window on this site is not live.

  • Only complete lines are shown: a line appears when its line feed is in the file.

  • A file that becomes shorter than the point the page has read to starts the window again. The window keeps at most tail lines, 500 when not given.

  • A reader who scrolled up keeps the lines in front of them while lines are added at the end, and a window at the end follows the newest line.

That last behavior is measured in Chromium. Safari and Firefox are unverified.

What it is for

A log written by another program is data, and the page never copies it. A board page can show a build log as it is written, and the page stays plain Markdown. The full reference is “A live log” under “Terminal tile” in docs/authoring.md.

TileDown Updates

Stay updated with every exciting new feature we bring to TileDown, the Markdown‑first way to build sites you truly own.

View Markdown source
index.md
---
title: A log window that follows its file
date: 2026-11-22
order: 1
description: TileDown 0.14.0 adds live true to the terminal tile, so a window with a log file as its source follows the file while the page is open, with no reload.
tags: Release, Tiles, Terminal
image: /assets/post-live-log.svg
imageDark: /assets/post-live-log-dark.svg
---
# A log window that follows its file

TileDown 0.13.0 gave the `terminal` tile a file source and a window you scroll by hand.
0.14.0 lets that window follow the file while the page is open.

````
:::tile terminal
style: manual
lines: 20
source: board.log
tail: 500
title: board.log
live: true
:::
````

`live: true` goes with `source` and `style: manual`. It is an explicit opt-in: without
it the tile has no script, as before.

## How it works

The page carries one small script, the same for every live tile. Once a second it asks
the page's own origin, at one path (`/_td/log/`), for the lines after the point it has
read to, and adds them to the window. Nothing is loaded from anywhere else, and a page
with no live tile carries no script.

- `tiledown serve` answers the question, for the files the build listed and no others,
  only inside the content folder, and only to GET. A site deployed as static files has
  no answer: its live tile shows the lines of the build and nothing more. That is why
  the window on this site is not live.
- Only complete lines are shown: a line appears when its line feed is in the file.
- A file that becomes shorter than the point the page has read to starts the window
  again. The window keeps at most `tail` lines, 500 when not given.
- A reader who scrolled up keeps the lines in front of them while lines are added at
  the end, and a window at the end follows the newest line.

That last behavior is measured in Chromium. Safari and Firefox are unverified.

## What it is for

A log written by another program is data, and the page never copies it. A board page
can show a build log as it is written, and the page stays plain Markdown. The full
reference is "A live log" under "Terminal tile" in `docs/authoring.md`.