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

[Question] Why couple mustache ? #1

Open
bogas04 opened this issue Nov 14, 2016 · 3 comments
Open

[Question] Why couple mustache ? #1

bogas04 opened this issue Nov 14, 2016 · 3 comments

Comments

@bogas04
Copy link

bogas04 commented Nov 14, 2016

I think it'll be better to let users work out their data-binding (querySelector + templateStrings, mustache, etc) instead of forcing mustache.

@felipeccastro
Copy link
Owner

Adding mustache was a simple way of working with single file components, since the template tag doesn't have any built-in data-binding method.
It is possible to use something else, like template strings for example, by simply overriding the template method on the component class. I'll change the README to better reflect that.

@bogas04
Copy link
Author

bogas04 commented Nov 15, 2016

Makes sense. I think what you can do is create a separate module html-component-mustache-addon and makes necessary bindings so that users don't end up downloading code that they won't use.

@ichpuchtli
Copy link

Would be cool to see jsx support as this can be strongly typed in typescript.

https://youtu.be/6wEVu_mkJjM?t=29m24s

image
image

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

3 participants