From c5bd9be47fbb4155b3f24e5cdb90fb54dac53010 Mon Sep 17 00:00:00 2001 From: wing328 Date: Wed, 30 Jan 2019 15:00:19 +0000 Subject: [PATCH] Deploy website Deploy website version based on 2eb99f602aa4acaaa3bed0e8c7d67e4572f86cff --- docs/templating.html | 6 +++--- docs/templating/index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/templating.html b/docs/templating.html index 9bd55c33adc..2b1b7582072 100644 --- a/docs/templating.html +++ b/docs/templating.html @@ -695,9 +695,9 @@ The order of the items in the list matters: their position is used to group them For more details on Mustache see mustache.5. See also samskivert/jmustache for implementation-specific details.

First/Last

To access the first or last element in a list using Mustache:

-
{{#vars}}{{#-first}} this is the first element {{.}} {{/-first}}{{/vars}}
-{{#vars}}{{#-last}} this is the last element {{.}} {{/-last}}{{/vars}}
-
+
{{#vars}}{{#-first}} this is the first element {{.}} {{/-first}}{{/vars}}
+{{#vars}}{{#-last}} this is the last element {{.}} {{/-last}}{{/vars}}
+

This

Mustache evaluates template variables contextually. If the variable isn't found in the immediate object, mustache will search the parent. This is similar to JavaScript's prototype object (if you're familiar with the concept).

You can inspect this entire context by outputting {{this}}. For example:

diff --git a/docs/templating/index.html b/docs/templating/index.html index 9bd55c33adc..2b1b7582072 100644 --- a/docs/templating/index.html +++ b/docs/templating/index.html @@ -695,9 +695,9 @@ The order of the items in the list matters: their position is used to group them For more details on Mustache see mustache.5. See also samskivert/jmustache for implementation-specific details.

First/Last

To access the first or last element in a list using Mustache:

-
{{#vars}}{{#-first}} this is the first element {{.}} {{/-first}}{{/vars}}
-{{#vars}}{{#-last}} this is the last element {{.}} {{/-last}}{{/vars}}
-
+
{{#vars}}{{#-first}} this is the first element {{.}} {{/-first}}{{/vars}}
+{{#vars}}{{#-last}} this is the last element {{.}} {{/-last}}{{/vars}}
+

This

Mustache evaluates template variables contextually. If the variable isn't found in the immediate object, mustache will search the parent. This is similar to JavaScript's prototype object (if you're familiar with the concept).

You can inspect this entire context by outputting {{this}}. For example: