-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tradeoffs between handlebars partials and get
helper stink
#10
Milestone
Comments
I'm betting the easiest approach here will be to enhance Last time I checked the handlebars-rust library didn't provide an easy to way to extend built in functionality like |
Steps to enhance the
|
mkantor
added a commit
that referenced
this issue
Dec 29, 2021
This isn't used yet, but will allow the helper to modify the context (useful for #10).
mkantor
added a commit
that referenced
this issue
Jan 2, 2022
This isn't used yet, but will allow the helper to modify the context (useful for #10).
mkantor
added a commit
that referenced
this issue
Jan 2, 2022
This isn't used yet, but will allow the helper to modify the context (useful for #10).
mkantor
added a commit
that referenced
this issue
Jan 2, 2022
This isn't used yet, but will allow the helper to modify the context (useful for #10).
mkantor
added a commit
that referenced
this issue
Jan 2, 2022
This isn't used yet, but will allow the helper to modify the context (useful for #10).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the
get
helper and handlebars partial syntax ({{> blah}}
) serve similar purposes (including content from other files), but they don't fully overlap:get
helper can also embed content from executables or static files, but partials can't.get
can't.get
is passed a route, but partial syntax uses filesystem paths ({{get "/foo/bar"}}
vs{{> foo/bar.html.hbs}}
).get
.This is confusing and annoying. It would be great to eliminate these tradeoffs so that you don't need to think about when to use each one, either by combining them or making one a superset of the other.
The text was updated successfully, but these errors were encountered: