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
title="$(echo "$contents" | sed -n "/^Title:/s/^Title:[ ]//p")"
body="$(echo "$contents" | sed "1,/^$/d")"
echo "<html>
<title>A TEST - $title</title>
<span class="example"> This is an example of a special template used for tests </span>
<h1> $title </h1>
' > "$3"
chmod a+x "$3"