handlebars-rust icon indicating copy to clipboard operation
handlebars-rust copied to clipboard

Index access support for String

Open sunng87 opened this issue 6 years ago • 1 comments

At the moment, we only support index access for Array. String is also accessible via number index. Given s = "hello", the expression s.[0] should output h.

sunng87 avatar May 19 '19 02:05 sunng87

Attempted in #251 but for now it's not possible to get borrowed substring in serde.

I'm moving this out of 2.0's scope for now.

sunng87 avatar Jun 27 '19 16:06 sunng87