Skip to content

Is it possible to use a variable in an import/include? #15

@tschofen

Description

@tschofen

As Kit can't do conditionals, I was hoping to use variables in file path to include a file. I tried:

<!-- $content: content.kit -->
<!-- @include source/shared/$content -->

or

<!-- $path: one -->
<!-- @include source/shared/$path/content.kit -->

Neither works. Perhaps there is a different syntax?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions