dati

data and template interface
git clone git://git.gearsix.net/dati
Log | Files | Refs | Atom | README | LICENSE

commit 073ec138d104935cf4e3258646b2ffad5290e723
parent f4477f9edeec387c38041fbf9d27bd4f29309bd9
Author: gearsix <gearsix@tuta.io>
Date:   Mon, 22 Mar 2021 00:28:52 +0000

small tidyup work in examples/

Diffstat:
Mexamples/README | 2++
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1312-S01E02 Where No Man Has Gone Before.yaml -> examples/logs/NCC-1701 USS Enterprise/1312-S01E02 Where No Man Has Gone Before.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1329-S01E04 Mudd's Woman.json -> examples/logs/NCC-1701 USS Enterprise/1329-S01E04 Mudd's Woman.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1512-S01E03 The Corbomite Maneuver.yaml -> examples/logs/NCC-1701 USS Enterprise/1512-S01E03 The Corbomite Maneuver.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1513-S01E06 The Man Trap.toml -> examples/logs/NCC-1701 USS Enterprise/1513-S01E06 The Man Trap.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1533-S01E08 Charlie X.toml -> examples/logs/NCC-1701 USS Enterprise/1533-S01E08 Charlie X.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1672-S01E05 The Enemy Within.toml -> examples/logs/NCC-1701 USS Enterprise/1672-S01E05 The Enemy Within.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1704-S01E07 The Naked Time.json -> examples/logs/NCC-1701 USS Enterprise/1704-S01E07 The Naked Time.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/1709-S01E09 Balance of Terror.yaml -> examples/logs/NCC-1701 USS Enterprise/1709-S01E09 Balance of Terror.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2124-S01E18 The Squire of Gothos.toml -> examples/logs/NCC-1701 USS Enterprise/2124-S01E18 The Squire of Gothos.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2254-S01E01 The Cage.toml -> examples/logs/NCC-1701 USS Enterprise/2254-S01E01 The Cage.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2712-S01E10 What Are Little Girls Made Of?.yaml -> examples/logs/NCC-1701 USS Enterprise/2712-S01E10 What Are Little Girls Made Of.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2713-S01E12 Miri.json -> examples/logs/NCC-1701 USS Enterprise/2713-S01E12 Miri.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2715-S01E11 Dagger Of The Mind.yaml -> examples/logs/NCC-1701 USS Enterprise/2715-S01E11 Dagger Of The Mind.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2817-S01E13 The Conscience of the King.toml -> examples/logs/NCC-1701 USS Enterprise/2817-S01E13 The Conscience of the King.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2821-S01E14 The Galileo Seven.yaml -> examples/logs/NCC-1701 USS Enterprise/2821-S01E14 The Galileo Seven.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/2947-S01E15 Court Martial.toml -> examples/logs/NCC-1701 USS Enterprise/2947-S01E15 Court Martial.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16 The Menagerie, part 1.toml -> examples/logs/NCC-1701 USS Enterprise/3012-S01E16 The Menagerie, part 1.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16b The Menagerie, part 2.toml -> examples/logs/NCC-1701 USS Enterprise/3012-S01E16b The Menagerie, part 2.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3025-S01E17 Shore Leave.json -> examples/logs/NCC-1701 USS Enterprise/3025-S01E17 Shore Leave.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3045-S01E19 Arena.yaml -> examples/logs/NCC-1701 USS Enterprise/3045-S01E19 Arena.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3087-S01E20 The Alternative Factor.yaml -> examples/logs/NCC-1701 USS Enterprise/3087-S01E20 The Alternative Factor.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3113-S01E21 Tomorrow is Yesterday.yaml -> examples/logs/NCC-1701 USS Enterprise/3113-S01E21 Tomorrow is Yesterday.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3134-S01E28 The City on the Edge of Forever.toml -> examples/logs/NCC-1701 USS Enterprise/3134-S01E28 The City on the Edge of Forever.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3141-S01E24 Space Seed.yaml -> examples/logs/NCC-1701 USS Enterprise/3141-S01E24 Space Seed.yaml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3156-S01E22 The Return of The Archons.json -> examples/logs/NCC-1701 USS Enterprise/3156-S01E22 The Return of The Archons.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3192-S01E23 A Taste of Armageddon.json -> examples/logs/NCC-1701 USS Enterprise/3192-S01E23 A Taste of Armageddon.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3196-S01E26 The Devil In The Dark.toml -> examples/logs/NCC-1701 USS Enterprise/3196-S01E26 The Devil In The Dark.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3198-S01E27 Errand of Mercy.json -> examples/logs/NCC-1701 USS Enterprise/3198-S01E27 Errand of Mercy.json | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3287-S01E29 Operation Annihilate.toml -> examples/logs/NCC-1701 USS Enterprise/3287-S01E29 Operation Annihilate.toml | 0
Rexamples/logs/NCC-1701 USS Enterprise/2266–2269/3417-S01E25 This Side of Paradise.yaml -> examples/logs/NCC-1701 USS Enterprise/3417-S01E25 This Side of Paradise.yaml | 0
Mexamples/template/html.hmpl | 45+++++++++++++++++++++++----------------------
32 files changed, 25 insertions(+), 22 deletions(-)

diff --git a/examples/README b/examples/README @@ -9,3 +9,5 @@ An example of how you can run one of these examples: suti -cfg suti.cfg -r templates/html.tmpl > out.html Then open out.html to see the results. + +See the resulting html file hosted here: gearsix.net/star-trek-logs/tos.html diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1312-S01E02 Where No Man Has Gone Before.yaml b/examples/logs/NCC-1701 USS Enterprise/1312-S01E02 Where No Man Has Gone Before.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1329-S01E04 Mudd's Woman.json b/examples/logs/NCC-1701 USS Enterprise/1329-S01E04 Mudd's Woman.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1512-S01E03 The Corbomite Maneuver.yaml b/examples/logs/NCC-1701 USS Enterprise/1512-S01E03 The Corbomite Maneuver.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1513-S01E06 The Man Trap.toml b/examples/logs/NCC-1701 USS Enterprise/1513-S01E06 The Man Trap.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1533-S01E08 Charlie X.toml b/examples/logs/NCC-1701 USS Enterprise/1533-S01E08 Charlie X.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1672-S01E05 The Enemy Within.toml b/examples/logs/NCC-1701 USS Enterprise/1672-S01E05 The Enemy Within.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1704-S01E07 The Naked Time.json b/examples/logs/NCC-1701 USS Enterprise/1704-S01E07 The Naked Time.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1709-S01E09 Balance of Terror.yaml b/examples/logs/NCC-1701 USS Enterprise/1709-S01E09 Balance of Terror.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2124-S01E18 The Squire of Gothos.toml b/examples/logs/NCC-1701 USS Enterprise/2124-S01E18 The Squire of Gothos.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2254-S01E01 The Cage.toml b/examples/logs/NCC-1701 USS Enterprise/2254-S01E01 The Cage.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2712-S01E10 What Are Little Girls Made Of?.yaml b/examples/logs/NCC-1701 USS Enterprise/2712-S01E10 What Are Little Girls Made Of.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2713-S01E12 Miri.json b/examples/logs/NCC-1701 USS Enterprise/2713-S01E12 Miri.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2715-S01E11 Dagger Of The Mind.yaml b/examples/logs/NCC-1701 USS Enterprise/2715-S01E11 Dagger Of The Mind.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2817-S01E13 The Conscience of the King.toml b/examples/logs/NCC-1701 USS Enterprise/2817-S01E13 The Conscience of the King.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2821-S01E14 The Galileo Seven.yaml b/examples/logs/NCC-1701 USS Enterprise/2821-S01E14 The Galileo Seven.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2947-S01E15 Court Martial.toml b/examples/logs/NCC-1701 USS Enterprise/2947-S01E15 Court Martial.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16 The Menagerie, part 1.toml b/examples/logs/NCC-1701 USS Enterprise/3012-S01E16 The Menagerie, part 1.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16b The Menagerie, part 2.toml b/examples/logs/NCC-1701 USS Enterprise/3012-S01E16b The Menagerie, part 2.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3025-S01E17 Shore Leave.json b/examples/logs/NCC-1701 USS Enterprise/3025-S01E17 Shore Leave.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3045-S01E19 Arena.yaml b/examples/logs/NCC-1701 USS Enterprise/3045-S01E19 Arena.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3087-S01E20 The Alternative Factor.yaml b/examples/logs/NCC-1701 USS Enterprise/3087-S01E20 The Alternative Factor.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3113-S01E21 Tomorrow is Yesterday.yaml b/examples/logs/NCC-1701 USS Enterprise/3113-S01E21 Tomorrow is Yesterday.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3134-S01E28 The City on the Edge of Forever.toml b/examples/logs/NCC-1701 USS Enterprise/3134-S01E28 The City on the Edge of Forever.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3141-S01E24 Space Seed.yaml b/examples/logs/NCC-1701 USS Enterprise/3141-S01E24 Space Seed.yaml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3156-S01E22 The Return of The Archons.json b/examples/logs/NCC-1701 USS Enterprise/3156-S01E22 The Return of The Archons.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3192-S01E23 A Taste of Armageddon.json b/examples/logs/NCC-1701 USS Enterprise/3192-S01E23 A Taste of Armageddon.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3196-S01E26 The Devil In The Dark.toml b/examples/logs/NCC-1701 USS Enterprise/3196-S01E26 The Devil In The Dark.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3198-S01E27 Errand of Mercy.json b/examples/logs/NCC-1701 USS Enterprise/3198-S01E27 Errand of Mercy.json diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3287-S01E29 Operation Annihilate.toml b/examples/logs/NCC-1701 USS Enterprise/3287-S01E29 Operation Annihilate.toml diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3417-S01E25 This Side of Paradise.yaml b/examples/logs/NCC-1701 USS Enterprise/3417-S01E25 This Side of Paradise.yaml diff --git a/examples/template/html.hmpl b/examples/template/html.hmpl @@ -1,26 +1,27 @@ <!DOCTYPE html> <html lang="en"> - <head> - <title>{{.Title}}</title> - <meta charset="UTF-8" /> - <meta name="author" content="{{.Author}}" /> - <meta name="description" content="{{.Description}}" /> - </head> - <body> - <h1>{{.Title}}</h1> - <p> - {{.Description}} - <address>{{.Author}}</address> - </p> + <head> + <title>{{.Title}}</title> + <meta charset="UTF-8" /> + <meta name="author" content="{{.Author}}" /> + <meta name="description" content="{{.Description}}" /> + </head> + <body> + <h1>{{.Title}}</h1> + <p> + {{.Description}} + <address>{{.Author}}</address> + </p> - <main>{{range $i, $l := .logfiles}} - <hr /> - <dl> - <dt><b>Stardate:</b></dt><dd>{{$l.Stardate}}</dd> - <dt><b>Starship:</b></dt><dd>{{$l.Starship}}</dd> - <dt><b>Captain:</b></dt><dd>{{$l.Captain}}</dd> - </dl> - {{range $nlogs, $log := $l.Logs}}<p>{{$log}}</p>{{end}} - {{end}}</main> - </body> + <main>{{range $i, $l := .logfiles}} + <hr /> + + <dl> + <dt><b>Stardate:</b></dt><dd>{{$l.Stardate}}</dd> + <dt><b>Starship:</b></dt><dd>{{$l.Starship}}</dd> + <dt><b>Captain:</b></dt><dd>{{$l.Captain}}</dd> + </dl>{{if $l.Logs}}{{$nlogs := len $l.Logs}}{{range $n, $log := $l.Logs}} + <p>{{$log}}</p>{{end}}{{else}}<p>&lt;no entries&gt;{{end}} + {{end}}</main> + </body> </html>