Title: Theory / Unimportant / CS / Descriptive / Mustache;
Tags: computer_to_instruction hasNotNewEffectReturnsMeaning some_instruction FromInstruction comment fromCommand fromCommandLine
On every note of this deck, unless a note says otherwise:
Chapter: https://mustache.github.io/mustache.5.html

Name: A mustache
Chapter: https://mustache.github.io/mustache.5.html
Notation: {

Name: A tag
Definition: Text of the form {{foo}}
Chapter: https://mustache.github.io/mustache.5.html

Name: The key of the tag
Definition: The text between opening and closing mustache, without the potential command symbols
Chapter: https://mustache.github.io/mustache.5.html
Variables: \(t\) a tag
Name2: The tag key

Instruction: {{foo}}
Effect: Replaced by the value of foo in the closest context; HTML escaped
Name: A variable

Instruction: {{{foo}}} or {{& foo}}
Effect: Replaced by the value of foo in the closest context; HTML not escaped

Instruction: {{#foo}} bar {{/foo}}
Returns: If the value of foo is false/empty/undefined, this text is deleted,
if foo is a list, show bar, once for each element of the list. The element of the list being the closest context for bar's evaluation.
If foo is a function/callable type, it is called with bar as argument; its returned value is displayed
Otherwise, bar is displayed once
Extra: Sectio. Indeed
Name: A section

Instruction: {{^foo}} bar {{/foo}}
Effect: If foo is false/empty/undefined, bar is rendered
Otherwise nothing is rendered
Name: An inverted section

Language: Mustache
Instruction: {{!foo}}
Other fields (not shown on cards):
Chapter: https://mustache.github.io/mustache.5.html
Section: A comment

Instruction: {{>foo}}
Effect: Is replaced by foo, and then foo is evaluated as a mustache
Section: A comment

Fla: ---
foo
Effect: Starts a new set of data
Chapter: https://mustache.github.io/mustache.5.html
Section: A comment

Instruction: mustache
Effect: A command which, given as input a template and some data, will output the template with those data applied
Section: A comment