[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: add README to mustache directory
Holger Levsen
holger at layer-acht.org
Fri Jul 29 20:02:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 8cdd0f8eecb4086cac324d8cf44ccac3d4b39190
Author: Valerie R Young <spectranaut at riseup.net>
Date: Fri Jul 29 15:54:00 2016 -0400
reproducible debian: add README to mustache directory
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
mustache-templates/README | 26 ++++++++++++++++++++++++++
mustache-templates/reproducible/README | 12 ------------
2 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/mustache-templates/README b/mustache-templates/README
new file mode 100644
index 0000000..c812e2a
--- /dev/null
+++ b/mustache-templates/README
@@ -0,0 +1,26 @@
+mustache is a templating language with the following simple rules.
+The template accepts a "context" -- a python dictionary. Values can be
+Booleans, strings, numbers, html, and lists of dictionaries. Empty stings,
+None and False values are interpreted as false.
+
+See complete description here: https://mustache.github.io/mustache.5.html
+
+Syntax:
+{{foo}}
+ -> subsitute with the value of foo
+
+{{#foo}}some html{{/foo}}
+ -> if foo exists and it's value is not false, include "some html"
+
+{{^foo}}some html{{/foo}}
+ -> if foo does not exists or it's value is false, include "some html"
+
+{{#foo}}{{^bar}}some html{{/bar}}{{/foo}}
+ -> if foo exists and bar does not exist, include "some html"
+
+{{#items}}<ul>{{item}}</ul>{{/items}}
+ -> if context['items'] is a list of dictionaries, repeat the html between
+ the "items" tags using each object as the context iteratively.
+
+{{{additional_html}}}
+ -> three "{" must be used to pass html into a template
diff --git a/mustache-templates/reproducible/README b/mustache-templates/reproducible/README
deleted file mode 100644
index fb31489..0000000
--- a/mustache-templates/reproducible/README
+++ /dev/null
@@ -1,12 +0,0 @@
-mustache is documented in PLEASE FIXME valerie! :)
-
-{{#foo}}
- -> if foo is defined
-
-{{^foo}}
- -> if foo is not defined
-
-{{#foo}}{{^bar}}
- -> if foo is defined and bar is not defined
-
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list