Skip to content

Generate multiple output files with cog #19

@karolzlot

Description

@karolzlot

Is it possible to generate multiple output files with cog?

For example I have python dictionary:

MODULE_ACTIONS_DICT = {
"contractors": ["add", "delete", "edit", "find", "get"],
"invoices": ["add", "delete", "download", "edit", "find"],
"expenses": ["find","get"],
........
}

I would like to use cog to create multiple source files, one file per dictionary key and using dictionary values to parametrize those files.

I wonder if cog is right tool for this task... Alternatively I can use jinja2

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