all_metrics../source/all_metrics.html.md.erb
(cloudfoundry/docs-running-cf; the whole page without the eight lines
that include its metric tables as partials:
SOURCES)../published/all_metrics.html)all_metrics.vars;
anchors: all_metrics.anchorstitle: Cloud Foundry component metrics; line 6 replaces it with ERB
code, <% current_page.data.title = vars.app_runtime_abbr + " Component Metrics" %>.
It is the only page in the book that sets its title from a variable, and
the only <% %> tag (code, not output) that reads one
(survey). No front matter in
the book holds a variable.| # | Variable | Value | Place | Renders as | Source |
|---|---|---|---|---|---|
| 1 | app_runtime_abbr |
Cloud Foundry (L25) |
the page title, by code | <title> “Cloud Foundry Component Metrics | Cloud Foundry Docs” and the page’s h1 “Cloud Foundry Component Metrics” |
L6 |
The published page shows the title the code sets
(published copy, lines 11 and 512):
Middleman renders the page body before its layout, so the layout’s
current_page.data.title
(layout.erb L11-L12)
reads the new value.
<title>
and its heading. The check looks for it in both.