diff --git a/cli/codegen/main.go b/cli/codegen/main.go index 47e4523..5667d44 100644 --- a/cli/codegen/main.go +++ b/cli/codegen/main.go @@ -15,7 +15,7 @@ import ( "time" core "dappco.re/go" - "dappco.re/go/html/engine/codegen" + "dappco.re/go/render/engine/codegen" coreio "dappco.re/go/io" ) diff --git a/cli/go.mod b/cli/go.mod index 37245a3..4e34f16 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -1,4 +1,4 @@ -module dappco.re/go/html/cli +module dappco.re/go/render/cli go 1.26.2 diff --git a/cli/termdemo/main.go b/cli/termdemo/main.go index 17d0107..0a6ed97 100644 --- a/cli/termdemo/main.go +++ b/cli/termdemo/main.go @@ -14,7 +14,7 @@ import ( "os" "strconv" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // demoTranslator resolves the demo's Text keys from a fixed catalogue — the diff --git a/cli/wasm/main.go b/cli/wasm/main.go index 5732ea7..908ba6f 100644 --- a/cli/wasm/main.go +++ b/cli/wasm/main.go @@ -5,7 +5,7 @@ package main import ( "syscall/js" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // Keep the callback alive for the lifetime of the WASM module. diff --git a/cli/wasm/register.go b/cli/wasm/register.go index 70bb5dc..099bc65 100644 --- a/cli/wasm/register.go +++ b/cli/wasm/register.go @@ -5,7 +5,7 @@ package main import ( core "dappco.re/go" - "dappco.re/go/html/engine/codegen" + "dappco.re/go/render/engine/codegen" ) // buildComponentJS takes a JSON slot map and returns the WC bundle JS result. diff --git a/cli/wasm/render_layout.go b/cli/wasm/render_layout.go index 7aded5d..ae1ab8b 100644 --- a/cli/wasm/render_layout.go +++ b/cli/wasm/render_layout.go @@ -2,7 +2,7 @@ package main -import html "dappco.re/go/html/engine/html" +import html "dappco.re/go/render/engine/html" // renderLayout renders an HLCRF layout from a slot map. // diff --git a/go/display/ctmltest/click.go b/go/display/ctmltest/click.go index 0b00b9e..55e3a79 100644 --- a/go/display/ctmltest/click.go +++ b/go/display/ctmltest/click.go @@ -8,7 +8,7 @@ import ( "strconv" "testing" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // runClick dispatches one Click command and reports a failure through t -- diff --git a/go/display/ctmltest/click_test.go b/go/display/ctmltest/click_test.go index 8d83b3b..3e24525 100644 --- a/go/display/ctmltest/click_test.go +++ b/go/display/ctmltest/click_test.go @@ -7,7 +7,7 @@ package ctmltest import ( "testing" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" "github.com/stretchr/testify/assert" ) diff --git a/go/display/ctmltest/config.go b/go/display/ctmltest/config.go index 9d6dc13..d81461d 100644 --- a/go/display/ctmltest/config.go +++ b/go/display/ctmltest/config.go @@ -82,7 +82,7 @@ func applySet(cfg *tapeConfig, cmd command) { // "Welcome"` seeds values["session"] = map[string]any{"title": "Welcome"} // and a .ctml {{session.title}} bind resolves against it -- ctml's own // {{path}} resolution walks Bindings.Values the same way (see -// dappco.re/go/html/ctml's lookupPath). A key with no dot ("count") is the +// dappco.re/go/render/ctml's lookupPath). A key with no dot ("count") is the // single-segment case of the same walk: values["count"] = value directly. // A dotted path whose prefix was previously set to a non-map value (or vice // versa) simply overwrites at the point of collision -- last Data line for diff --git a/go/display/ctmltest/coverage_test.go b/go/display/ctmltest/coverage_test.go index c2de408..aedae92 100644 --- a/go/display/ctmltest/coverage_test.go +++ b/go/display/ctmltest/coverage_test.go @@ -7,7 +7,7 @@ package ctmltest_test import ( "testing" - "dappco.re/go/html/display/ctmltest" + "dappco.re/go/render/display/ctmltest" ) // This file dogfoods the ctmltest harness against go-html's own render diff --git a/go/display/ctmltest/ctmltest_test.go b/go/display/ctmltest/ctmltest_test.go index 6363c85..d837b88 100644 --- a/go/display/ctmltest/ctmltest_test.go +++ b/go/display/ctmltest/ctmltest_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "dappco.re/go/html/display/ctmltest" + "dappco.re/go/render/display/ctmltest" ) // TestCTML runs every _test.ctml tape directly under testdata/ -- this is diff --git a/go/display/ctmltest/doc.go b/go/display/ctmltest/doc.go index 10295a0..3da6d7d 100644 --- a/go/display/ctmltest/doc.go +++ b/go/display/ctmltest/doc.go @@ -29,7 +29,7 @@ // BEFORE the tape's first render-reading command (Expect, Golden, or // Click -- see isRenderRead) build the initial render inputs -- a // ctml.Bindings, since .ctml binds resolve at PARSE time, not from a -// Context at render time (see dappco.re/go/html/ctml's package doc) -- and +// Context at render time (see dappco.re/go/render/ctml's package doc) -- and // a html.TermOptions; RenderTermBoxes renders once to seed that state. // From there RunFile walks the rest of the tape in order: Expect/Golden/ // Click assert against the CURRENT frame and box map, and a Data command diff --git a/go/display/ctmltest/drive.go b/go/display/ctmltest/drive.go index 05dad9d..027a817 100644 --- a/go/display/ctmltest/drive.go +++ b/go/display/ctmltest/drive.go @@ -7,7 +7,7 @@ package ctmltest import ( "strconv" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // isRenderRead reports whether verb reads the tape's current render state @@ -74,7 +74,7 @@ type driveState struct { // newDriveState seeds a driveState from tapePath and prepareRun's result. // The live values/sequences maps are result.cfg's own, not a copy -- safe, // because ctml.Parse resolves Bindings at PARSE time, not from a live -// reference read later at render time (see dappco.re/go/html/ctml's +// reference read later at render time (see dappco.re/go/render/ctml's // package doc), so mutating values after a Parse call has already returned // can never reach back into a frame that call already produced. func newDriveState(tapePath string, result renderResult) *driveState { diff --git a/go/display/ctmltest/drive_test.go b/go/display/ctmltest/drive_test.go index 84e200f..39672db 100644 --- a/go/display/ctmltest/drive_test.go +++ b/go/display/ctmltest/drive_test.go @@ -7,7 +7,7 @@ package ctmltest import ( "testing" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/go/display/ctmltest/expect.go b/go/display/ctmltest/expect.go index cf00cbf..a1e41f3 100644 --- a/go/display/ctmltest/expect.go +++ b/go/display/ctmltest/expect.go @@ -12,7 +12,7 @@ import ( "testing" core "dappco.re/go" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" coreio "dappco.re/go/io" "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" diff --git a/go/display/ctmltest/expect_test.go b/go/display/ctmltest/expect_test.go index 534e5a0..efe11c7 100644 --- a/go/display/ctmltest/expect_test.go +++ b/go/display/ctmltest/expect_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" coreio "dappco.re/go/io" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/go/display/ctmltest/run.go b/go/display/ctmltest/run.go index 34de109..280301c 100644 --- a/go/display/ctmltest/run.go +++ b/go/display/ctmltest/run.go @@ -10,8 +10,8 @@ import ( "testing" core "dappco.re/go" - html "dappco.re/go/html/engine/html" - ctml "dappco.re/go/html/engine/ctml" + html "dappco.re/go/render/engine/html" + ctml "dappco.re/go/render/engine/ctml" coreio "dappco.re/go/io" ) @@ -178,7 +178,7 @@ func prepareRun(tapePath string) (renderResult, error) { // renderCTML parses ctmlSrc against the given Bindings -- resolved at // PARSE time, not from a live reference read later at render time (see -// dappco.re/go/html/ctml's package doc) -- and RenderTermBoxes the result +// dappco.re/go/render/ctml's package doc) -- and RenderTermBoxes the result // once. Shared by prepareRun's initial render and driveState.redrive's // mid-tape re-render: the same two steps (parse, render) and the same // failure shape (naming tapeRef), from two call sites. diff --git a/go/display/http/http.go b/go/display/http/http.go index bef65b9..35842ec 100644 --- a/go/display/http/http.go +++ b/go/display/http/http.go @@ -8,7 +8,7 @@ import ( nethttp "net/http" core "dappco.re/go" - tsengine "dappco.re/go/html/engine/ts" + tsengine "dappco.re/go/render/engine/ts" ) // Option configures Handler. diff --git a/go/display/pipe/pipe.go b/go/display/pipe/pipe.go index f3d88ba..0e860de 100644 --- a/go/display/pipe/pipe.go +++ b/go/display/pipe/pipe.go @@ -6,7 +6,7 @@ package pipe import ( core "dappco.re/go" - tsengine "dappco.re/go/html/engine/ts" + tsengine "dappco.re/go/render/engine/ts" ) // Emit renders entry once with a nil input and writes the exact output bytes diff --git a/go/display/socket/socket.go b/go/display/socket/socket.go index cf81bf7..8257aa4 100644 --- a/go/display/socket/socket.go +++ b/go/display/socket/socket.go @@ -9,8 +9,8 @@ import ( nethttp "net/http" core "dappco.re/go" - httpdisplay "dappco.re/go/html/display/http" - tsengine "dappco.re/go/html/engine/ts" + httpdisplay "dappco.re/go/render/display/http" + tsengine "dappco.re/go/render/engine/ts" ) // Serve serves the HTTP SSR handler over listener until the listener closes. diff --git a/go/display/socket/socket_test.go b/go/display/socket/socket_test.go index a892959..c64c76b 100644 --- a/go/display/socket/socket_test.go +++ b/go/display/socket/socket_test.go @@ -9,7 +9,7 @@ import ( "testing" core "dappco.re/go" - httpdisplay "dappco.re/go/html/display/http" + httpdisplay "dappco.re/go/render/display/http" ) type socketRenderer struct { diff --git a/go/display/tui/anim/anim.go b/go/display/tui/anim/anim.go index 9638658..fb8521f 100644 --- a/go/display/tui/anim/anim.go +++ b/go/display/tui/anim/anim.go @@ -22,9 +22,9 @@ import ( "strings" "time" - tea "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/spinner" - "dappco.re/go/html/display/tui/style" + tea "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/spinner" + "dappco.re/go/render/display/tui/style" colorful "github.com/lucasb-eyer/go-colorful" "github.com/muesli/termenv" ) diff --git a/go/display/tui/app.go b/go/display/tui/app.go index 32c22b7..bb0d82d 100644 --- a/go/display/tui/app.go +++ b/go/display/tui/app.go @@ -15,7 +15,7 @@ package tui import ( - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // App is the root manager Model: each frame it renders a .ctml node tree to the @@ -48,7 +48,7 @@ func WithRenderContext(ctx *html.Context) AppOption { return func(a *App) { a.ct func WithQuitKeys(pred func(KeyPressMsg) bool) AppOption { return func(a *App) { a.quit = pred } } // NewApp builds a manager around a parsed .ctml node tree (see -// dappco.re/go/html/engine/ctml.Parse). Options tune the theme, render context, +// dappco.re/go/render/engine/ctml.Parse). Options tune the theme, render context, // and quit keys; the defaults render the house theme and quit on ctrl+c / q. func NewApp(node html.Node, opts ...AppOption) *App { a := &App{ diff --git a/go/display/tui/app_example_test.go b/go/display/tui/app_example_test.go index c66133f..18116f9 100644 --- a/go/display/tui/app_example_test.go +++ b/go/display/tui/app_example_test.go @@ -5,8 +5,8 @@ package tui_test import ( "fmt" - ctml "dappco.re/go/html/engine/ctml" - tui "dappco.re/go/html/display/tui" + ctml "dappco.re/go/render/engine/ctml" + tui "dappco.re/go/render/display/tui" ) // ExampleNewApp builds a manager around a .ctml document -- the shape a consumer diff --git a/go/display/tui/app_test.go b/go/display/tui/app_test.go index f5f1b42..b33c66b 100644 --- a/go/display/tui/app_test.go +++ b/go/display/tui/app_test.go @@ -10,9 +10,9 @@ import ( "github.com/charmbracelet/x/ansi" teatest "github.com/charmbracelet/x/exp/teatest/v2" - ctml "dappco.re/go/html/engine/ctml" - html "dappco.re/go/html/engine/html" - tui "dappco.re/go/html/display/tui" + ctml "dappco.re/go/render/engine/ctml" + html "dappco.re/go/render/engine/html" + tui "dappco.re/go/render/display/tui" ) // parse compiles a .ctml source to a node, failing the test on a parse error. diff --git a/go/display/tui/colorprofile/colorprofile_test.go b/go/display/tui/colorprofile/colorprofile_test.go index b461238..be8dc23 100644 --- a/go/display/tui/colorprofile/colorprofile_test.go +++ b/go/display/tui/colorprofile/colorprofile_test.go @@ -6,7 +6,7 @@ import ( "bytes" "testing" - "dappco.re/go/html/display/tui/colorprofile" + "dappco.re/go/render/display/tui/colorprofile" ) // --- Profile constants --- diff --git a/go/display/tui/colorprofile/example_test.go b/go/display/tui/colorprofile/example_test.go index 69e6b1c..9cf437f 100644 --- a/go/display/tui/colorprofile/example_test.go +++ b/go/display/tui/colorprofile/example_test.go @@ -6,7 +6,7 @@ import ( "bytes" "fmt" - "dappco.re/go/html/display/tui/colorprofile" + "dappco.re/go/render/display/tui/colorprofile" ) // ExampleWriter builds a Writer fixed to the ANSI256 profile and writes a diff --git a/go/display/tui/cursor/cursor_test.go b/go/display/tui/cursor/cursor_test.go index 5e72070..d7d01f8 100644 --- a/go/display/tui/cursor/cursor_test.go +++ b/go/display/tui/cursor/cursor_test.go @@ -10,8 +10,8 @@ import ( "github.com/charmbracelet/x/exp/teatest/v2" - tea "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/cursor" + tea "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/cursor" ) // TestNew builds a cursor with the package defaults and proves them: it diff --git a/go/display/tui/cursor/example_test.go b/go/display/tui/cursor/example_test.go index aa67cef..57b2d79 100644 --- a/go/display/tui/cursor/example_test.go +++ b/go/display/tui/cursor/example_test.go @@ -5,7 +5,7 @@ package cursor_test import ( "fmt" - "dappco.re/go/html/display/tui/cursor" + "dappco.re/go/render/display/tui/cursor" ) // ExampleNew builds a cursor and switches it to CursorStatic — the shape a diff --git a/go/display/tui/doc.go b/go/display/tui/doc.go index cd3fa16..c21d78a 100644 --- a/go/display/tui/doc.go +++ b/go/display/tui/doc.go @@ -1,5 +1,5 @@ // Package tui is go-html's terminal-UI runtime: the event loop and the -// widgets a .ctml consumer needs, so the consumer imports dappco.re/go/html +// widgets a .ctml consumer needs, so the consumer imports dappco.re/go/render // only and never charmbracelet directly. charm becomes go-html's transitive // concern — optimise or replace it once here and the whole fleet inherits // (SPOR). diff --git a/go/display/tui/example_test.go b/go/display/tui/example_test.go index 58d0de5..2963e13 100644 --- a/go/display/tui/example_test.go +++ b/go/display/tui/example_test.go @@ -3,7 +3,7 @@ package tui_test import ( "fmt" - htui "dappco.re/go/html/display/tui" + htui "dappco.re/go/render/display/tui" ) // houseModel is the smallest tea.Model that turns on the two capabilities a @@ -27,7 +27,7 @@ func (houseModel) View() htui.View { // ExampleNewProgram builds a Program with a couple of this file's house // options — WithoutSignalHandler and WithFPS — and a Model whose View turns // on the alternate screen and mouse tracking, entirely through -// dappco.re/go/html/display/tui: no charmbracelet import anywhere in this file. +// dappco.re/go/render/display/tui: no charmbracelet import anywhere in this file. func ExampleNewProgram() { p := htui.NewProgram(houseModel{}, htui.WithoutSignalHandler(), htui.WithFPS(30)) fmt.Println(p != nil) diff --git a/go/display/tui/filepicker/example_test.go b/go/display/tui/filepicker/example_test.go index cb11b38..733de5d 100644 --- a/go/display/tui/filepicker/example_test.go +++ b/go/display/tui/filepicker/example_test.go @@ -5,7 +5,7 @@ package filepicker_test import ( "fmt" - "dappco.re/go/html/display/tui/filepicker" + "dappco.re/go/render/display/tui/filepicker" ) // ExampleNew builds a picker and points it at a directory, restricting diff --git a/go/display/tui/filepicker/filepicker_test.go b/go/display/tui/filepicker/filepicker_test.go index 75783cc..5a4997d 100644 --- a/go/display/tui/filepicker/filepicker_test.go +++ b/go/display/tui/filepicker/filepicker_test.go @@ -11,9 +11,9 @@ import ( "github.com/charmbracelet/x/exp/teatest/v2" core "dappco.re/go" - tea "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/filepicker" - "dappco.re/go/html/display/tui/style" + tea "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/filepicker" + "dappco.re/go/render/display/tui/style" coreio "dappco.re/go/io" ) diff --git a/go/display/tui/form/example_test.go b/go/display/tui/form/example_test.go index c07dd93..8f65cc2 100644 --- a/go/display/tui/form/example_test.go +++ b/go/display/tui/form/example_test.go @@ -5,7 +5,7 @@ package form_test import ( "fmt" - "dappco.re/go/html/display/tui/form" + "dappco.re/go/render/display/tui/form" ) // ExampleNewForm builds a two-field form — an Input and a generic Select — diff --git a/go/display/tui/form/form_test.go b/go/display/tui/form/form_test.go index fd1482e..e5f283b 100644 --- a/go/display/tui/form/form_test.go +++ b/go/display/tui/form/form_test.go @@ -5,7 +5,7 @@ package form_test import ( "testing" - "dappco.re/go/html/display/tui/form" + "dappco.re/go/render/display/tui/form" ) // TestNewForm_Good builds a real form through the wrap — a generic Select and diff --git a/go/display/tui/image/example_test.go b/go/display/tui/image/example_test.go index 06eb905..e9f9043 100644 --- a/go/display/tui/image/example_test.go +++ b/go/display/tui/image/example_test.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - tuiimage "dappco.re/go/html/display/tui/image" + tuiimage "dappco.re/go/render/display/tui/image" ) // ExampleRender renders a tiny generated image to an 8x4 terminal block — diff --git a/go/display/tui/image/image_test.go b/go/display/tui/image/image_test.go index de6bdab..cb42203 100644 --- a/go/display/tui/image/image_test.go +++ b/go/display/tui/image/image_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - tuiimage "dappco.re/go/html/display/tui/image" + tuiimage "dappco.re/go/render/display/tui/image" ) // newCheckerboard builds a deterministic n-by-n RGBA image — a two-colour diff --git a/go/display/tui/layout/example_test.go b/go/display/tui/layout/example_test.go index 7836937..3d46297 100644 --- a/go/display/tui/layout/example_test.go +++ b/go/display/tui/layout/example_test.go @@ -6,7 +6,7 @@ import ( "fmt" "image" - "dappco.re/go/html/display/tui/layout" + "dappco.re/go/render/display/tui/layout" ) // ExampleLayout_Split partitions a 10x10 rect into a 3-tall header and a diff --git a/go/display/tui/layout/layout_test.go b/go/display/tui/layout/layout_test.go index ae3630f..bb966ea 100644 --- a/go/display/tui/layout/layout_test.go +++ b/go/display/tui/layout/layout_test.go @@ -6,7 +6,7 @@ import ( "image" "testing" - "dappco.re/go/html/display/tui/layout" + "dappco.re/go/render/display/tui/layout" ) // TestNew builds a Layout for each Direction and checks the fields New sets diff --git a/go/display/tui/loop_options_test.go b/go/display/tui/loop_options_test.go index dd8c7a5..bae4de3 100644 --- a/go/display/tui/loop_options_test.go +++ b/go/display/tui/loop_options_test.go @@ -12,7 +12,7 @@ import ( "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/teatest/v2" - htui "dappco.re/go/html/display/tui" + htui "dappco.re/go/render/display/tui" ) // TestProgramOptions_ConstructWithoutPanic bundles every re-exported diff --git a/go/display/tui/markdown/example_test.go b/go/display/tui/markdown/example_test.go index aeef958..530cd5b 100644 --- a/go/display/tui/markdown/example_test.go +++ b/go/display/tui/markdown/example_test.go @@ -5,7 +5,7 @@ package markdown_test import ( "fmt" - "dappco.re/go/html/display/tui/markdown" + "dappco.re/go/render/display/tui/markdown" ) // ExampleNew_customStyle builds a small custom theme — a warm accent on diff --git a/go/display/tui/markdown/options_test.go b/go/display/tui/markdown/options_test.go index 57b357c..087ceb7 100644 --- a/go/display/tui/markdown/options_test.go +++ b/go/display/tui/markdown/options_test.go @@ -10,7 +10,7 @@ import ( core "dappco.re/go" coreio "dappco.re/go/io" - "dappco.re/go/html/display/tui/markdown" + "dappco.re/go/render/display/tui/markdown" ) // render builds a Renderer with opts and renders md, failing the test on any diff --git a/go/display/tui/motion/example_test.go b/go/display/tui/motion/example_test.go index eb66078..bcf9a75 100644 --- a/go/display/tui/motion/example_test.go +++ b/go/display/tui/motion/example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "dappco.re/go/html/display/tui/motion" + "dappco.re/go/render/display/tui/motion" ) // ExampleNewSpring runs a Spring toward a target position over a run of diff --git a/go/display/tui/motion/motion_test.go b/go/display/tui/motion/motion_test.go index fc837b9..a60af66 100644 --- a/go/display/tui/motion/motion_test.go +++ b/go/display/tui/motion/motion_test.go @@ -4,7 +4,7 @@ import ( "math" "testing" - "dappco.re/go/html/display/tui/motion" + "dappco.re/go/render/display/tui/motion" ) const epsilon = 1e-9 diff --git a/go/display/tui/paginator/example_test.go b/go/display/tui/paginator/example_test.go index e167f86..7f2a0fd 100644 --- a/go/display/tui/paginator/example_test.go +++ b/go/display/tui/paginator/example_test.go @@ -5,7 +5,7 @@ package paginator_test import ( "fmt" - "dappco.re/go/html/display/tui/paginator" + "dappco.re/go/render/display/tui/paginator" ) // ExampleNew builds a Dots-style paginator over three pages, advances it one diff --git a/go/display/tui/paginator/paginator_test.go b/go/display/tui/paginator/paginator_test.go index 5598bbd..9ac0cca 100644 --- a/go/display/tui/paginator/paginator_test.go +++ b/go/display/tui/paginator/paginator_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - htui "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/paginator" + htui "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/paginator" "github.com/charmbracelet/x/exp/teatest/v2" ) diff --git a/go/display/tui/progress/example_test.go b/go/display/tui/progress/example_test.go index f2d3d3f..cc9bb6b 100644 --- a/go/display/tui/progress/example_test.go +++ b/go/display/tui/progress/example_test.go @@ -5,8 +5,8 @@ package progress_test import ( "fmt" - "dappco.re/go/html/display/tui/progress" - "dappco.re/go/html/display/tui/style" + "dappco.re/go/render/display/tui/progress" + "dappco.re/go/render/display/tui/style" ) // ExampleNew builds a bar and renders it at a fixed percentage with ViewAs — diff --git a/go/display/tui/progress/progress_test.go b/go/display/tui/progress/progress_test.go index 70f403d..a1c56fa 100644 --- a/go/display/tui/progress/progress_test.go +++ b/go/display/tui/progress/progress_test.go @@ -11,9 +11,9 @@ import ( "github.com/charmbracelet/x/exp/teatest/v2" - tea "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/progress" - "dappco.re/go/html/display/tui/style" + tea "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/progress" + "dappco.re/go/render/display/tui/style" ) // TestNew builds a bar with the package defaults and proves it renders a diff --git a/go/display/tui/seam_test.go b/go/display/tui/seam_test.go index d160d78..b04a63c 100644 --- a/go/display/tui/seam_test.go +++ b/go/display/tui/seam_test.go @@ -3,15 +3,15 @@ package tui_test import ( "testing" - htui "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/help" - "dappco.re/go/html/display/tui/key" - "dappco.re/go/html/display/tui/list" - "dappco.re/go/html/display/tui/markdown" - "dappco.re/go/html/display/tui/spinner" - "dappco.re/go/html/display/tui/textarea" - "dappco.re/go/html/display/tui/textinput" - "dappco.re/go/html/display/tui/viewport" + htui "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/help" + "dappco.re/go/render/display/tui/key" + "dappco.re/go/render/display/tui/list" + "dappco.re/go/render/display/tui/markdown" + "dappco.re/go/render/display/tui/spinner" + "dappco.re/go/render/display/tui/textarea" + "dappco.re/go/render/display/tui/textinput" + "dappco.re/go/render/display/tui/viewport" ) // TestSeam_ConstructsEveryWidget is the acceptance that a consumer can drop diff --git a/go/display/tui/stopwatch/example_test.go b/go/display/tui/stopwatch/example_test.go index 40327dc..a10851f 100644 --- a/go/display/tui/stopwatch/example_test.go +++ b/go/display/tui/stopwatch/example_test.go @@ -5,7 +5,7 @@ package stopwatch_test import ( "fmt" - "dappco.re/go/html/display/tui/stopwatch" + "dappco.re/go/render/display/tui/stopwatch" ) // ExampleNew builds a stopwatch and confirms Init arms the running state: diff --git a/go/display/tui/stopwatch/stopwatch_test.go b/go/display/tui/stopwatch/stopwatch_test.go index 6f15ab6..340fa37 100644 --- a/go/display/tui/stopwatch/stopwatch_test.go +++ b/go/display/tui/stopwatch/stopwatch_test.go @@ -9,8 +9,8 @@ import ( "github.com/charmbracelet/x/exp/teatest/v2" - tea "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/stopwatch" + tea "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/stopwatch" ) // TestNew builds a stopwatch and confirms its zero state: no elapsed time, diff --git a/go/display/tui/style/blend_test.go b/go/display/tui/style/blend_test.go index ff5e9ec..c9164d6 100644 --- a/go/display/tui/style/blend_test.go +++ b/go/display/tui/style/blend_test.go @@ -3,7 +3,7 @@ package style_test import ( "testing" - "dappco.re/go/html/display/tui/style" + "dappco.re/go/render/display/tui/style" ) func TestBlend1D_MidpointLiesBetweenTheStops(t *testing.T) { diff --git a/go/display/tui/style/color_test.go b/go/display/tui/style/color_test.go index 9d2acb2..7e7f6ec 100644 --- a/go/display/tui/style/color_test.go +++ b/go/display/tui/style/color_test.go @@ -3,7 +3,7 @@ package style_test import ( "testing" - "dappco.re/go/html/display/tui/style" + "dappco.re/go/render/display/tui/style" ) func TestAdaptiveColor_Resolve_PicksDarkOnADarkTerminal(t *testing.T) { diff --git a/go/display/tui/style/example_test.go b/go/display/tui/style/example_test.go index 9849e4c..b79ca5d 100644 --- a/go/display/tui/style/example_test.go +++ b/go/display/tui/style/example_test.go @@ -3,7 +3,7 @@ package style_test import ( "fmt" - "dappco.re/go/html/display/tui/style" + "dappco.re/go/render/display/tui/style" ) // ExampleNewCompositor composites a background layer and a badge layer diff --git a/go/display/tui/style/layers_test.go b/go/display/tui/style/layers_test.go index a36b36c..2f3fa0c 100644 --- a/go/display/tui/style/layers_test.go +++ b/go/display/tui/style/layers_test.go @@ -3,7 +3,7 @@ package style_test import ( "testing" - "dappco.re/go/html/display/tui/style" + "dappco.re/go/render/display/tui/style" ) func TestNewLayer_TracksPositionAndContent(t *testing.T) { diff --git a/go/display/tui/style/list/example_test.go b/go/display/tui/style/list/example_test.go index 32c1117..ef61e3f 100644 --- a/go/display/tui/style/list/example_test.go +++ b/go/display/tui/style/list/example_test.go @@ -3,7 +3,7 @@ package list_test import ( "fmt" - "dappco.re/go/html/display/tui/style/list" + "dappco.re/go/render/display/tui/style/list" ) // ExampleNew builds a small grocery list with one nested, roman-numbered diff --git a/go/display/tui/style/list/list_test.go b/go/display/tui/style/list/list_test.go index 9f03312..0440c44 100644 --- a/go/display/tui/style/list/list_test.go +++ b/go/display/tui/style/list/list_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "dappco.re/go/html/display/tui/style" - "dappco.re/go/html/display/tui/style/list" + "dappco.re/go/render/display/tui/style" + "dappco.re/go/render/display/tui/style/list" ) // TestNew_BuildsAndRenders builds a flat list and confirms every item and diff --git a/go/display/tui/style/style_test.go b/go/display/tui/style/style_test.go index cf849d5..65bc991 100644 --- a/go/display/tui/style/style_test.go +++ b/go/display/tui/style/style_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "dappco.re/go/html/display/tui/style" + "dappco.re/go/render/display/tui/style" ) // Color must satisfy Paint -- the colour interface a Style's diff --git a/go/display/tui/style/table/example_test.go b/go/display/tui/style/table/example_test.go index 35c3433..1ad01f7 100644 --- a/go/display/tui/style/table/example_test.go +++ b/go/display/tui/style/table/example_test.go @@ -3,7 +3,7 @@ package table_test import ( "fmt" - "dappco.re/go/html/display/tui/style/table" + "dappco.re/go/render/display/tui/style/table" ) // ExampleNew builds a two-column, two-row table and prints it: the shape a diff --git a/go/display/tui/style/table/table_test.go b/go/display/tui/style/table/table_test.go index f1a4ad4..57c51ad 100644 --- a/go/display/tui/style/table/table_test.go +++ b/go/display/tui/style/table/table_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "dappco.re/go/html/display/tui/style" - "dappco.re/go/html/display/tui/style/table" + "dappco.re/go/render/display/tui/style" + "dappco.re/go/render/display/tui/style/table" ) // StringData must satisfy Data -- the row/column source a Table reads from. diff --git a/go/display/tui/style/tree/example_test.go b/go/display/tui/style/tree/example_test.go index 028e1ba..0019660 100644 --- a/go/display/tui/style/tree/example_test.go +++ b/go/display/tui/style/tree/example_test.go @@ -3,7 +3,7 @@ package tree_test import ( "fmt" - "dappco.re/go/html/display/tui/style/tree" + "dappco.re/go/render/display/tui/style/tree" ) // ExampleRoot builds a small nested tree and prints it: the shape a consumer diff --git a/go/display/tui/style/tree/tree_test.go b/go/display/tui/style/tree/tree_test.go index 39e459e..7433011 100644 --- a/go/display/tui/style/tree/tree_test.go +++ b/go/display/tui/style/tree/tree_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "dappco.re/go/html/display/tui/style" - "dappco.re/go/html/display/tui/style/tree" + "dappco.re/go/render/display/tui/style" + "dappco.re/go/render/display/tui/style/tree" ) // Tree and Leaf must satisfy Node; NewStringData must satisfy Children; Style diff --git a/go/display/tui/table/example_test.go b/go/display/tui/table/example_test.go index 6f4473d..865533e 100644 --- a/go/display/tui/table/example_test.go +++ b/go/display/tui/table/example_test.go @@ -5,7 +5,7 @@ package table_test import ( "fmt" - "dappco.re/go/html/display/tui/table" + "dappco.re/go/render/display/tui/table" ) // ExampleNew builds a two-row table and reads back its selected row: the diff --git a/go/display/tui/table/table_test.go b/go/display/tui/table/table_test.go index 299dbf7..b749424 100644 --- a/go/display/tui/table/table_test.go +++ b/go/display/tui/table/table_test.go @@ -10,8 +10,8 @@ import ( tea "charm.land/bubbletea/v2" "github.com/charmbracelet/x/exp/teatest/v2" - "dappco.re/go/html/display/tui/style" - "dappco.re/go/html/display/tui/table" + "dappco.re/go/render/display/tui/style" + "dappco.re/go/render/display/tui/table" ) func cols() []table.Column { diff --git a/go/display/tui/timer/example_test.go b/go/display/tui/timer/example_test.go index ace59b4..18c6b9c 100644 --- a/go/display/tui/timer/example_test.go +++ b/go/display/tui/timer/example_test.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "dappco.re/go/html/display/tui/timer" + "dappco.re/go/render/display/tui/timer" ) // ExampleNew builds a ten-second countdown and confirms Init arms the first diff --git a/go/display/tui/timer/timer_test.go b/go/display/tui/timer/timer_test.go index a5fde2c..5789605 100644 --- a/go/display/tui/timer/timer_test.go +++ b/go/display/tui/timer/timer_test.go @@ -9,8 +9,8 @@ import ( "github.com/charmbracelet/x/exp/teatest/v2" - tea "dappco.re/go/html/display/tui" - "dappco.re/go/html/display/tui/timer" + tea "dappco.re/go/render/display/tui" + "dappco.re/go/render/display/tui/timer" ) // TestNew builds a countdown and confirms the timeout it was given and the diff --git a/go/engine/ctml/ast.go b/go/engine/ctml/ast.go index c36559d..325bc15 100644 --- a/go/engine/ctml/ast.go +++ b/go/engine/ctml/ast.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // astNode is the parsed, pre-materialisation representation of one .ctml @@ -187,7 +187,7 @@ func materialiseAll(nodes []astNode, resolve resolver, bnd Bindings) []html.Node } // materialise builds the real html.Node tree for one astNode, calling only -// exported dappco.re/go/html constructors -- see docs/ctml.md S:S1.2. +// exported dappco.re/go/render constructors -- see docs/ctml.md S:S1.2. func materialise(n astNode, resolve resolver, bnd Bindings) html.Node { switch t := n.(type) { case *astEl: diff --git a/go/engine/ctml/corecommand.go b/go/engine/ctml/corecommand.go index 066ad8c..ba7d71b 100644 --- a/go/engine/ctml/corecommand.go +++ b/go/engine/ctml/corecommand.go @@ -6,7 +6,7 @@ import ( "strings" core "dappco.re/go" - html "dappco.re/go/html/engine/html" + html "dappco.re/go/render/engine/html" ) // SubcommandList generates a