Skip to content

Probably a small Feature Request: PLASTER_TemplateSource #314

@schittli

Description

@schittli

Good morning

Thanks a lot for this really great and useful module, it's a little difficult to work with the generated files, but it's very helpful for own projects.

Unfortunately, Plaster has a very big issue which would be very easy to solve.
If one would like to contribute to complex foreign projects, then it very often takes a long time to find the source template
that belongs to a generated file: We have to grep for similar text, study code and understand the logic - just to get the right template.

Therefore, it would be great if

  1. Plaster could offer a Variable which references the exact path of the used template, for example, PLASTER_TemplateSource or PLASTER_TemplateFileName (…Source is more generic and could later be extended for generated Text which is not based on a Template but just on Code)
  2. Plaster recommends as best practices to always use this Variable in generated files.

This could include the necessary hint in the generated files:

MyFile.ps1
# Generated by Plaster
# Template: xxx

At least for me, it would save hours.
Thanks a lot, kind regards,
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions