ControlFlowDirectives

laika.directive.std.ControlFlowDirectives$

Provides the implementation for the standard control flow directives included in Laika.

These include:

  • for: Accesses a value from the context and sets it as the reference context for its body elements, executing the body if the referenced value is non-empty and executing it multiple times when it is a collection.
  • if: Accesses a value from the context and processes the body element only when it is a value recognized as true.

For full documentation see the section about Conditionals and Loops in the manual.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

Implementation of the for directive for templates.

Implementation of the for directive for templates.

Attributes

lazy val templateIf: Directive

Implementation of the if directive for templates.

Implementation of the if directive for templates.

Attributes