Rewrite to Odin
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
#!/bin/sh
|
||||
input=$(cat -)
|
||||
input="${input#v run src/}"
|
||||
input="${input#odin 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user