#!/bin/sh template() { toy=$(echo "$1" | cut -d ';' -f 1) content=$(echo "$1" | cut -d ';' -f 2) cat < EOF printf '\t\ttoymaker::%s\n' "$toy" cat < * { box-sizing: border-box; } a { color: #00afff; } a:hover { background-color: #db9d3b; color: #000000; }
toymaker
EOF printf '\t\t\t

%s

\n' "$toy" if [ "$(echo "$content" | tr -d ' ' | sed 's/n,//')" = '' ] then printf '\t\t\t\n' if [ "$status" = '0' ] then printf '\t\t\t\t\tOK\n' elif [ "$status" = 'r' ] then printf '\t\t\t\t\tR_\n' else printf '\t\t\t\t\tER\n' fi printf '\t\t\t\t\t%s\n' "$toy" "$name" "$name" printf '\t\t\t\t\n' done printf '\t\t\t\n' fi cat < EOF }