A shell script template engine for generating HTML markup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

14 lines
249 B

$ #!/bin/sh
$ title='My Website';
$ dangerous='<b>Unescaped</b>';
<!doctype html>
<html>
# This is a comment
<head>
<title><% $title %></title>
</head>
<body>
<h1>Welcome: <% $2 %></h1>
<p><!% $dangerous %></p>
</body>
</html>