This commit is contained in:
2026-07-11 17:11:02 +02:00
parent 61d950910d
commit 55d140a867
2 changed files with 19 additions and 0 deletions
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
input=$(cat -)
input="${input#v run src/}"
style="<style>$(cat styles.css)</style>"
start="<html><head><title>TypoML Preview</title>$style</head><body>"
end="</body></html>"
output="$start$input$end"
echo "$output" > /tmp/preview.html
xdg-open /tmp/preview.html