responsive-html-email-signature icon indicating copy to clipboard operation
responsive-html-email-signature copied to clipboard

Alt conf format support

Open danmindru opened this issue 8 years ago • 2 comments

JSON is not the best format for configs. In general it's a bit strict and it doesn't allow comments.

Could deprecate it in favor of YAML. Vanilla JS is also an option.

danmindru avatar Aug 19 '16 19:08 danmindru

@danmindru are you still considering this? If so, I could possibly commit some time to it if you could provide a little guidance / insight on exactly what you envision.

paskainos avatar Apr 23 '19 23:04 paskainos

Hi @paskainos, still think the JSON is a bit clunky. I’m not too strict about it, just have a checklist of improvements in mind:

  • [ ] a file format with lighter syntax. JSON requires around properties, :, ,, etc; anything lighter is a win IMO
  • [ ] allows inline comments
  • [ ] can handle a single config object or an array of config objects (to match current JSON that can either take {} or [{},{}]
  • [ ] would be nice if multi-line strings are allowed as a bonus (thinking for those that write light HTML)

Any other ideas are welcome :) Not sure if JSON should remain as a legacy format or not. I guess it wouldn’t hurt to keep it. Thanks for the help!

danmindru avatar Apr 24 '19 07:04 danmindru