commercialhaskell / commercialhaskell/stack

Proper escaping in mustache templates

Open
#3,664 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.