Skip to content

macros (as in Jinja) #238

Description

@snej

The macro feature in Jinja would be super great to have. I'm finding myself repeating lots of small snippets in my templates, things for which include in't well suited (too heavyweight and doesn't take parameters.)

Activity

xahon commented on Jul 11, 2022

@xahon

@snej Inlcude takes variables from current scope but it can't set output variables, unfortunately

navrocky commented on Nov 15, 2024

@navrocky
Contributor

I agree, it's a much-needed feature. Currently, I'm using the includes as workaround, but it's inconvenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions