commercialhaskell / commercialhaskell/stack
Proper escaping in mustache templates
Open
component: init / new
type: discuss
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
The hastache templates used by `stack new` do not necessarily do adequate quoting / escaping when creating values in contexts like cabal or hpack files. See, for example https://github.com/commercialhaskell/stack/issues/3660#issuecomment-352204654 . In that case, the solution is to put quotes around it. However, this will not adequately handle backslashes.
Contributor guide
Assessment
This issue has not been assessed yet.