Skip to content

Instantly share code, notes, and snippets.

@MLKrisJohnson
Created August 8, 2017 20:50
Show Gist options
  • Save MLKrisJohnson/b9fbc0c8370c670bb0da98794ff6dd67 to your computer and use it in GitHub Desktop.
Save MLKrisJohnson/b9fbc0c8370c670bb0da98794ff6dd67 to your computer and use it in GitHub Desktop.
Bash script to generate a minimal HTML 5 document
# Write a minimal HTML document to standard output
newhtml() {
cat <<END
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<!-- <link rel="stylesheet" href="style.css"> -->
<!-- <script src="script.js"></script> -->
</head>
<body>
<!-- page content -->
</body>
</html>
END
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment