Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 829 Bytes

File metadata and controls

9 lines (9 loc) · 829 Bytes

Plan

If the rendered output starts with “#!”, make the target file executable (maybe add option “–no-chmod” to disable this)

Allow project-local templates by searching the current directory and parent directories

  • Recognize local template files by prefix .template-, i.e., local template files have names of the form .template-<PATTERN>.
  • Check vim-template docs how they do it, ideally we should be compatible (but only if their way isn’t less powerful; compatibility isn’t crucial)
  • be sure to use the real path of the current directory (if we entered it via symlink)

Integrate into emacs

Later: maybe also allow templating of full project structure (like stack new)

This might require a separate command-line argument “template”, since I can’t just match the file extension