Caddyfile support multi line string
without supporting of multi line string, it's difficult to develop some new plugins which need user to configure some complex string such as json.
directive here_might_be_a_json
# now
directive here_json_file_path
If you approve this feature, I am willing to contribute
I believe the Caddyfile already supports multiline strings when enclosed in quotes.
@mholt I mean somthing like this:
`{
"name": "foo",
"age": "bar",
}`
But now, we must do it like:
"
{\"name\":\"foo\",
\"age\":\"bar\"
}
"
Don't want to escape string
Ah, I see. So you want an alternate strings delimiter. Definitely possible.
Yes, it would be perfect if Caddyfile supports this
Feel free to submit a PR, I hope the implementation will not be too tricky!
Also consider if this could break anyone (I doubt it, but, worth considering.)
I'll try my best
@mholt what happen about this feature..? if not implemented yet can you explain me what we wan to do.
I dunno, I never got a PR from @caibirdme -- I don't have the time to do it right now but you're welcome to submit a PR for review.
@mholt can you explain what have to do. i mean which feature your expecting
As described above, I think multi-line strings delimited by ` is a good idea:
`{
"name": "foo",
"age": "bar",
}`
@mholt im not able to understand for which scenario this will be usefull i mean when this type of object will come from whom (how to generate this scenario)
Implemented in #3242, will go out by Caddy 2.1.