Updated readme
This commit is contained in:
parent
70c3c428ac
commit
5063197c0b
@ -40,26 +40,26 @@ printf '%s\n' '<!doctype html>';
|
|||||||
printf '%s\n' '<html>';
|
printf '%s\n' '<html>';
|
||||||
printf '%s\n' ' <head>';
|
printf '%s\n' ' <head>';
|
||||||
printf '%s' ' <title>';
|
printf '%s' ' <title>';
|
||||||
printf '%s' "$title" | jq -Rrj @html;
|
printf '%s' "$title" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/"/\"/g;s/'\''/\'/g'
|
||||||
printf '%s\n' '</title>';
|
printf '%s\n' '</title>';
|
||||||
printf '%s\n' ' </head>';
|
printf '%s\n' ' </head>';
|
||||||
printf '%s\n' ' <body>';
|
printf '%s\n' ' <body>';
|
||||||
printf '%s' ' <h1>Welcome to ';
|
printf '%s' ' <h1>Welcome to ';
|
||||||
printf '%s' "$title" | jq -Rrj @html;
|
printf '%s' "$title" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/"/\"/g;s/'\''/\'/g'
|
||||||
printf '%s\n' '</h1>';
|
printf '%s\n' '</h1>';
|
||||||
printf '%s\n' ' <p>From the following restaurants:</p>';
|
printf '%s\n' ' <p>From the following restaurants:</p>';
|
||||||
printf '%s\n' ' <ul>';
|
printf '%s\n' ' <ul>';
|
||||||
# Loop through restaurants and display each one
|
# Loop through restaurants and display each one
|
||||||
while read -r restaurant; do
|
while read -r restaurant; do
|
||||||
printf '%s' ' <li>';
|
printf '%s' ' <li>';
|
||||||
printf '%s' "$restaurant" | jq -Rrj @html;
|
printf '%s' "$restaurant" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/"/\"/g;s/'\''/\'/g'
|
||||||
printf '%s\n' '</li>';
|
printf '%s\n' '</li>';
|
||||||
done <restaurants.txt
|
done <restaurants.txt
|
||||||
printf '%s\n' ' </ul>';
|
printf '%s\n' ' </ul>';
|
||||||
printf '%s\n' ' <p>';
|
printf '%s\n' ' <p>';
|
||||||
printf '%s\n' ' The fates have decided that you shall eat at:';
|
printf '%s\n' ' The fates have decided that you shall eat at:';
|
||||||
printf '%s' ' <strong>';
|
printf '%s' ' <strong>';
|
||||||
printf '%s' "$(shuf -n 1 restaurants.txt)" | jq -Rrj @html;
|
printf '%s' "$(shuf -n 1 restaurants.txt)" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g;s/"/\"/g;s/'\''/\'/g'
|
||||||
printf '%s\n' '</strong>';
|
printf '%s\n' '</strong>';
|
||||||
printf '%s\n' ' </p>';
|
printf '%s\n' ' </p>';
|
||||||
printf '%s\n' ' </body>';
|
printf '%s\n' ' </body>';
|
||||||
|
Loading…
Reference in New Issue
Block a user