Skip to content

exercise util: use templates instead of manually modifying files #698

@coriolinus

Description

@coriolinus

Currently many operations in this utility operate at the file level, directly appending strings and bytes. We'll get better results with higher-level abstractions: never directly appending to Config.toml, for example, but using a toml-parsing crate instead. Likewise, writing the tests file will be much easier using a template system like handlebars. Note that this mention of handlebars isn't a requirement to use that particular crate, just an example of a plausible templating engine.

It is not necessary to implement this before #679 or #686, but those issues will probably be easier to fix after the fix for this has been implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions