project-init icon indicating copy to clipboard operation
project-init copied to clipboard

How may I copy a file with its contents without processing the contents using Mustache?

Open mmynsted opened this issue 3 years ago • 0 comments

I have a LaTeX file, {{ project }}.md/scriv-pmarkdown.latex.

It contains content with {{ and }} as part of the normal LaTeX. If I add the file to the templates block in template.toml then the LaTeX is altered and broken on init of a new project from the template.

If I add the file to the files block then the file is added empty on init of a new project from the template.

If I alter the delimiters used by Mustache (see Set Delimiter) in the scriv-pmarkdown.latex file as follows and then put the file in the templates block:

Add to the top of the file.

%{{=<% %>=}}

Add to the bottom of the file.

%<%={{ }}=%>

The change in delimiters is ignored and so the file is broken.

Is there are way to copy the contents of the file without parsing with Mustache?

mmynsted avatar Jun 12 '22 23:06 mmynsted