As the maintainer of a design system that uses Underscore templates, I use Pattern Lab / Node to maintain it, and have written a pattern engine to be able to author Underscore templates. Unfortunately, our library of Underscore templates consists of files named with the .html
extension. This destroys the frontend viewer's ability to render them, since the raw template overwrites the rendered output during the build step; they have exactly the same filename.
Therefore, as per @dmolsen's suggestion, I propose that the naming of these output files be configurable. I propose, for simplicity, that this be done with the addition of configurable suffixes for these output files, which would appear at the end of the base file name but before the file extension. Here is a proposal for the configuration structure, with the present-day scheme as defaults:
{
...
outputFileSuffixes: {
rendered: '',
rawTemplate: '',
markupOnly: '.markup-only',
}
...
}
The timeline for this feature is ASAP. This is blocking our migration to Pattern Lab 2.0.
If I had permissions to do so, I would tag this needs-implementation because no POC implementation yet exists.
/cc @pattern-lab/voting-members