jneug / parboil

:rice: Parboil lets you generate boilerplate projects from template files.
MIT License
0 stars 0 forks source link

Advanced field definitions #5

Closed jneug closed 3 years ago

jneug commented 3 years ago

Allow fields to have more complex logic. String values are normal default values, while a dict defines an advanced field. The dict should at least have a type key to determine the field type and usually a value key.

The default value could than also be defined as an advanced field with

{
    "fields": {
        "FieldName": {
            "type": "default-value",
            "value": "my default"
        }
    }
}

This would allow for more complex types of inputs. e.g a file select type.