Simple console.debug()
that shows the current context.
Parameters: none
Data:
{
"collection": [
{
"name": "Leela",
"deliveries": 8021
},
{
"name": "Bender",
"deliveries": 239
},
{
"name": "Fry",
"deliveries": 1
}
]
}
Template:
{{#withFirst collection}}
{{debug name}}
{{/withFirst}}
Renders to:
Context: { deliveries: 8021, name: "Leela" }
Value: Leela
Return a stringified array of the expanded file paths that match the given globbing pattern(s)
Parameters: String
Default: undefined
Template:
{{expandJSON 'src/**/*.md'}}
Renders to:
[
"src/content/blockquotes.md",
"src/content/chapters/01-getting-started.md",
"src/content/chapters/02-language-features.md",
"src/content/chapters/03-advanced-materials.md",
"src/content/code.md",
"src/content/emphasis.md",
"src/content/headings.md",
"src/content/images.md",
"src/content/links.md",
"src/content/lists.md",
"src/content/markdown-here.md",
"src/content/paragraphs.md",
"src/content/post.md",
"src/content/reference-links.md",
"src/content/reference.md",
"src/content/tables.md",
"src/content/test.md"
]
Return a unique, YAML-formatted array of all file or directory paths that match the given globbing pattern(s)
String
undefined
Template:
{{expandYAML 'src/**/*.md'}}
Renders to:
- "src/content/blockquotes.md"
- "src/content/chapters/01-getting-started.md"
- "src/content/chapters/02-language-features.md"
- "src/content/chapters/03-advanced-materials.md"
- "src/content/code.md"
- "src/content/emphasis.md"
- "src/content/headings.md"
- "src/content/images.md"
- "src/content/links.md"
- "src/content/lists.md"
- "src/content/markdown-here.md"
- "src/content/paragraphs.md"
- "src/content/post.md"
- "src/content/reference-links.md"
- "src/content/reference.md"
- "src/content/tables.md"
- "src/content/test.md"
Simple console.log()
Parameters: none
Template
{{log "Hi console :)"}}
Renders to:
Hi console :)
See the template for this page →
Find an error? Let us know →