CatpileDocs
Guide

Migrating from Old JSON-Format `.catui` Files

**Version 1.1.0** replaces the old JSON-based `.catui` format with a clean indentation-based DSL. The old format still works in `cpile build` but is **deprecated** and will be removed in a future release.

0%

Before (old JSON format):

json
{
    "ui": [
        {
            "class": "Frame",
            "globalid": "root",
            "alias": "root",
            "size": "{1,0},{1,0}",
            "children": [
                { "class": "TextLabel", "globalid": "title", "text": "Hello" }
            ]
        }
    ],
    "metadata": { "description": "My page" }
}

After (new DSL format):

python
page "page":

    description = "My page"

    frame root [globalid: "root"]:
        size = "{1,0},{1,0}"
        textlabel title:
            text = "Hello"