Skip to content

include template function with arguments #5897

@UweOhse

Description

@UweOhse

The documentation for the include template function states:

  Includes the contents of another file and renders in-place.
  Optionally can pass key-value pairs as arguments to be accessed by the included file.

 {{include "path/to/file.html"}}  // no arguments
 {{include "path/to/file.html" "arg1" 2 "value 3"}}  // with arguments

How does one access these arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation 📚Improvements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions