magarena/scripts/gen_html_preview.awk

15 lines
173 B
Awk
Raw Normal View History

# input: card scripts
# output: html file with name and image
BEGIN {
FS = "="
}
/name=/ {
print "<p>" $2 "</p>"
}
/image=/ {
print "<img src=\"" $2 "\"/>"
}