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
I know this is about a month late, but it's failing because - is an invalid character for a variable in this Mustache library. I can't find any indication of valid/invalid characters in the original Mustache spec, but for Elixir it makes sense to forbid this character since it's forbidden in (unquoted) atoms. If you replace all the -s with _, rendering works.
I actually switched to bbmustache (an Erlang library) and stopped having issues. I don’t really know much about the original Mustache spec, but bbmustache worked for me.
I'm building a Base16 builder in Elixir and I've come across a case where rendering is failing with no errors. Here's my test case:
and the output is not interpolated and look like this:
"# Base16 {{scheme-name}} - alacritty color config\n# {{scheme-author}}\ncolors:\n # Default colors\n primary:\n background: '0x{{base00-hex}}'\n foreground: '0x{{base05-hex}}'\n\n # Colors the cursor will use if `custom_cursor_colors` is true\n cursor:\n text: '0x{{base00-hex}}'\n cursor: '0x{{base05-hex}}'\n\n # Normal colors\n normal:\n black: '0x{{base00-hex}}'\n red: '0x{{base08-hex}}'\n green: '0x{{base0B-hex}}'\n yellow: '0x{{base0A-hex}}'\n blue: '0x{{base0D-hex}}'\n magenta: '0x{{base0E-hex}}'\n cyan: '0x{{base0C-hex}}'\n white: '0x{{base05-hex}}'\n\n # Bright colors\n bright:\n black: '0x{{base03-hex}}'\n red: '0x{{base09-hex}}'\n green: '0x{{base01-hex}}'\n yellow: '0x{{base02-hex}}'\n blue: '0x{{base04-hex}}'\n magenta: '0x{{base06-hex}}'\n cyan: '0x{{base0F-hex}}'\n white: '0x{{base05-hex}}'\n\n"
(I'm on version 0.3.1 this time)
The text was updated successfully, but these errors were encountered: