Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 477 Bytes
# This is a special template for items with the "test" tag.
# It is meant to be sure that that feature works
echo '#!/bin/sh
contents="$(cat)"
title="$(echo "$contents" | sed -n "/^Title:/s/^Title:[ ]//p")"
body="$(echo "$contents" | sed "1,/^$/d")"
echo "<html>
<head>
<title>A TEST - $title</title>
</head>
<body>
<span class="example"> This is an example of a special template used for tests </span>
<h1> $title </h1>
$body
</body>
</html>"
' > "$3"
chmod a+x "$3"