You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File templating is common, but the easiest way to do it right now is with multiline strings. It would be nice if files could be templated directly, with the same syntax as strings.
The text was updated successfully, but these errors were encountered:
I assume you mean something where the templated file exists outside the script, and you could do something like std:fs:apply-template path/to/template/file path/to/output?
This would work very differently from multiline strings if it were a function, as they statically determine all captures and are parsed during tokenization. A syntax builtin would make it more equivalent, e.g. rust's include! macro occurs prior to tokenization.
File templating is common, but the easiest way to do it right now is with multiline strings. It would be nice if files could be templated directly, with the same syntax as strings.
The text was updated successfully, but these errors were encountered: