Ning Sun

Results 223 comments of Ning Sun

Removing lifetime won't work because some constants from template are passed within rendering call chain, which requires explicit lifetime. The currently design assumes all templates are stored within registry so...

ring-jetty9-adapter maintainer here. If there a lot of cases for using aws-api and websocket together, I can back port the new websocket APIs to 0.14.x. Please report in this thread...

@mkantor may I know your use case for this feature?

Thanks for the great insight. Soy template seems to have the [contextautoesc module](https://github.com/google/closure-templates/tree/master/java/src/com/google/template/soy/parsepasses/contextautoesc) as an example. I will definitely look into this.

hi @tmpfs , because `RenderContext` is an internal mutable data to maintain the state during rendering. Exposing it in a render method is breaking my design. Could you please show...

Hello @tmpfs For your first example, I will suggest you to render the dynamic template outside the helper if possible: ```rust let dyn_tpl = data.get("template").as_str().unwrap(); let intermediate_result = hbs.render_template(dyn_tpl, data).unwrap();...

Yes. To support chained else, we may need an update in current parser and helper definition because `{{else if ...}}` is incompatible with current model.

@rousan sorry, there is no progress for now.

@rousan the helper system is totally open. You can register you own block/inline helpers with our API. Checkout examples if you like. For this chained else, some work needs to...

@shujaatak Unfortunately there is no progress for this feature. Contributions are welcomed for this.