Update project structure

This commit is contained in:
2025-10-01 14:42:08 +02:00
parent 1969c4ac8d
commit 8cb3efef8d
38 changed files with 13 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
import std/[os, strutils, unittest]
import ../src/luxtools
const indexTemplate = staticRead("../templates/index.html")
const indexTemplate = staticRead("../src/templates/index.html")
suite "rendering helpers":
test "counter markup references hx attributes":
@@ -19,6 +19,6 @@ suite "rendering helpers":
check not indexTemplate.contains("unpkg.com/htmx")
check not indexTemplate.contains("unpkg.com/tui-css")
test "demo asset lives in www directory":
let assetPath = joinPath(getAppDir(), "..", "www", "demo.txt")
test "demo asset lives in assets directory":
let assetPath = joinPath(getAppDir(), "..", "assets", "demo.txt")
check fileExists(assetPath)