summaryrefslogtreecommitdiff
path: root/canon.st
blob: 13092a3ab47170d58687d6f609e632484d3cca15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
group formatter;

copyrightLine(author) ::= <<
Copyright (c) <author.year> <author.name><if(author.email)> \<<author.email>\><endif>
>>

canon(m4header, name, synopsis, description, authors, license, body) ::= <<
<m4header>#
# SYNOPSIS
#
#   <synopsis; separator="\n#   ">
#
# DESCRIPTION
#
#   <description:{e| <e; separator="\n#   ">}; separator="\n#\n#   ">
#
# LICENSE
#
#   <authors:copyrightLine(); separator="\n#   ">
#
#   <license:{e| <e; separator="\n#   ">}; separator="\n#\n#   ">

<body; separator="\n">
>>