Skip to content
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

Idea for nicer syntax: Use handlebars subexpression #2

Open
MajorBreakfast opened this issue Feb 12, 2015 · 0 comments
Open

Idea for nicer syntax: Use handlebars subexpression #2

MajorBreakfast opened this issue Feb 12, 2015 · 0 comments

Comments

@MajorBreakfast
Copy link
Owner

In the talk Stefan (@iStefo) came up with the idea of doing something similar as is done in the link-to helper.

Example:

{{#link-to 'posts' (query-params direction="asc")}}Sort{{/link-to}}

I thought about it and there are at least two challenges:

  • How to call it. Subexpressions aren't scoped in any way. I think calling it component clashes with the component helper
  • How to specify the direction of each property. Mind, we can rename things, e.g. from -> outwards, but even with that it's hard to make it so that the syntax is easy to remember and when read aloud forms a somewhat grammatically correct sentence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant