scroll Github

Templates

Scroll's templating support is in early stages and supporting following features now.

Variables

Page

Page variable is the all content that comes from org file. Every template should contains it otherwise Scroll will generate only html of template but not document.

Usage


<<page>>

NOTE: Do note use whitespace while using page variable

Example


<!DOCTYPE html>
<html>
  <body>
    <<page>>
  </body>
</html>

Title

If title not set in document, variable will be empty, so its better to use it with if statement.

Usage


{{ if title }}<title>{title}</title>{{ endif }}

Date

If date not set in document, variable will be empty, so its better to use it with if statement.

Usage


{{ if date }}<h1 class="date">{date}</h1>{{ endif }}