vmchale / project-init

Project templates in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mmynsted opened this issue · 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?