QuantumJS
Home
Introduction
Overview
Quick Start
The Markup Language
Core Concepts
Using the CLI / API
Quantum vs Markdown
Config
quantum.config.js
Core Modules
quantum-core
quantum-dom
quantum-html
Optional Modules
quantum-api
quantum-code-highlight
quantum-diagram
quantum-docs
quantum-markdown
quantum-template
quantum-version
Edit Page
Template changelog
What has changed in
quantum-template
for each release.
2.0.0
Initial public release of quantum-template.
template
Added
Creates a template to apply to the page.
for
Added
Loop through an
Array
variable or an
Object
variables keys
if
Added
Display some content based on a variable value.
ifnot
Added
Inverse of
@if
, can be used as an 'else' statement for
@if
blocks. It displays content if a the value of a variable is falsey.
fileTransform
options
Object
FileTransform
Added
The function for getting a
FileTransform
for parsing template variables and processing the entities (e.g.
@for
,
@if
provided by this module.
wrapper
fileContent
Array
[
Entity
]
Added
The function used by the
fileTransform
that processes the
@template
entities.
It does not apply variable definitions and only processes the page content to apply the templating.
1.0.0
Version 1.0.0 is an unsupported version of the library.