Conversation
7abfce6 to
4962d7e
Compare
|
This API would be useful for me, so I brought this branch up-to-date in #444. |
Merge master and add a test for `register_template_source`
| pub fn get_templates(&self) -> &HashMap<String, Template> { | ||
| &self.templates | ||
| /// Return all registered template names | ||
| pub fn get_template_names(&self) -> Vec<String> { |
There was a problem hiding this comment.
Sad that we didn't catch the 4.0 release train to ship this break change.
With the Source API, the original get_templates() -> &HashMap<String, Template> has lost its meaning
|
@mkantor may I know your use case for this feature? |
My use case is to set up a registry from already-open With handlebars-rust 3.x I'm using the old If this doesn't get merged I'll probably use the path with |
|
I ended up using |
No description provided.