Maciej Hirsz

Results 185 comments of Maciej Hirsz

Hey! That looks super interesting! We already have a way to serialize the AST produced by ratel to ESTree compatible JSON, a binary format would be even better for any...

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to choose either at their option.

> ramhorns uses fnvhash as default, however the hasher is interchangeable. You can only change the hasher used for internal hashmap that handles partials. All regular variable injection is hardcoded...

It shouldn't be too hard to do, I've commented on this in [previous issue](https://github.com/maciejhirsz/ramhorns/issues/42#issuecomment-796963482). @Th3Whit3Wolf I assume this is mostly for repeated sections?

I think a useful api could be something like: ```rust let result: Result = tpl.check::(); ``` But a plain "give me all the fields this template requires" should be reasonable...

Ramhorns supports `HashMap`s and `BTreeMap`s so you can construct arbitrary dynamic structures that way. To work with `serde_json::Value` directly the `Content` trait would need to be implemented for it, we...

Just put the `impl` for `serde_json::Value` in a separate module, like `serde.rs`. In `lib.rs` do a conditional import: ```rust #[cfg(feature = "json")] mod serde; ``` Adding `serde_json` as optional feature...

@eeyun don't think there has been, happy to accept a PR.

Sections serve as if conditions in Mustache: `{{#condition}}...{{/condition}}`. You can use a boolean on a flat struct, or you can use an `Option`: ```rust #[derive(Content)] struct Foo { name: &'static...

Are you using latest version? It should have been fixed in #51.