Replies: 8 comments
-
You can use this variables :
Check if PLASTER_TemplatePath still contains the versionning of the container (module/script)? |
Beta Was this translation helpful? Give feedback.
-
Hi Laurent,
Many projects are hoping for free staff and this simple measure would make it much easier to get started, because many things are built around templates. Kind regards, Thomas |
Beta Was this translation helpful? Give feedback.
-
The file name is always 'plasterManifest.xml' or 'plasterManifest_(CultureName).xml)' This module contains two templates :
If you want to indicate the original template, here it would be something like:
But another solution is to place the information in the file to transform, like here
I think it was planned, but for the moment I do not know if this project is in sleep because of lack of time of the contributors. I am not the right person to answer that point.
Localizing is not easy if you do not want to duplicate xml files. |
Beta Was this translation helpful? Give feedback.
-
That's a fair assessment. :-) I will get back to the issue backlog but right now am busy on other OSS projects - namely the VSCode extension for PowerShell, PSES and posh-git. BTW thanks @LaurentDardenne for your continued support and help on this project.
That's a reasonable ask but IMO it should be put somewhere in each template's source files and not automatically added by Plaster. We'd screw up certain types of files where say I supposed Plaster could emit some sort of "template fingerprint/info" file but I could see folks getting annoyed by that - having to delete it most of the time so it didn't get committed to version control. |
Beta Was this translation helpful? Give feedback.
-
Hi Laurent, I will start using your proposed code in the opensource projects where I can contribute. It will hopefully work like a virus, so that others are starting to use it, too ;-) Kind regards, Thomas |
Beta Was this translation helpful? Give feedback.
-
Hi Keith Yes, my idea was not that Plaster automatically creates references to the used template in all generated files by itself. My idea was that if Plaster also works internally with Plaster templates or if it offers template examples, that these templates includes the source information wherever possible and useful. Kind regards, Thomas |
Beta Was this translation helpful? Give feedback.
-
Good evening
That's true, but the Manifest.xml probably isn't the template itself. Example usage in this Project:
|
Beta Was this translation helpful? Give feedback.
-
Good evening I've just created a pull request which introduces the new variable
|
Beta Was this translation helpful? Give feedback.
-
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
PLASTER_TemplateSource
orPLASTER_TemplateFileName
(…Source
is more generic and could later be extended for generated Text which is not based on a Template but just on Code)This could include the necessary hint in the generated files:
At least for me, it would save hours.
Thanks a lot, kind regards,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions