From 510c66faf8e7df7af8ffc567d5864fd8b5689432 Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Sun, 9 Jul 2017 21:20:24 -0600 Subject: [PATCH] Add exercise README templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are working towards making exercises stand-alone—that is to say: no more generating READMEs on the fly. This will give maintainers more control over each individual exercise README. The template uses the Go text/template package, and the default templates generate the exact same READMEs as we have been generating on the fly. --- config/exercise_readme.go.tmpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 config/exercise_readme.go.tmpl diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl new file mode 100644 index 00000000..2b26f494 --- /dev/null +++ b/config/exercise_readme.go.tmpl @@ -0,0 +1,16 @@ +# {{ .Spec.Name }} + +{{ .Spec.Description -}} +{{- with .Hints }} +{{ . }} +{{ end }} +{{- with .TrackInsert }} +{{ . }} +{{ end }} +{{- with .Spec.Credits -}} +## Source + +{{ . }} +{{ end }} +## Submitting Incomplete Solutions +It's possible to submit an incomplete solution so you can see how others have completed the exercise.