8000 expanding macro in include directive · Issue #23 · aradi/fypp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
expanding macro in include directive #23
Open
@ajshephard

Description

@ajshephard

I wish to expand a macro in an include directive (to determine the file name). I have something like

#:set FILENAMES = ['file', 'anotherfile']
#:for FILE in FILENAMES
    ! some code
    ! now include a file
    #:include "${FILE}$.fypp"
    ! more code
#:endfor

This does not work, and fypp returns "include file '${FILE}$.fypp' not found". Is it possible to accomplish this? Thanks.

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

      0