Table of Contents

Templating - Variables

About

Variables in Combostrap are first-class citizen meaning that you can use them anywhere.

Example

Without Transformation

The below markup will print:

  * Title: ''$title''
  * Path: ''$path''

Output

With pipeline transformation

You can transform the variable by using the pipeline syntax

It will create:

The [[$path| ${h1 | cut("-","2-") | trim()} page]].

Result:

The The variables that can be used anywhere page.

Variable List

The supported variable are:

And all frontmatter metadatas that are scalar (ie no array). Basically, all metadata that can be seen in the scalar metadata node of the analytics data can be used as attribute.

Value

By default all variables are filled with the value of the requested page.

When used inside a iterator fragment, they get the values of the selected page.

Parent Variable

You can retrieve parent page data with the hierarchical breadcrumb.