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

Make can-stache render able without dom none live binding version #727

Open
frank-dspeed opened this issue Dec 12, 2019 · 2 comments
Open

Comments

@frank-dspeed
Copy link
Contributor

can-stache at present allways applys livebindings it parses the string representation into a dom object to apply the bindings.

It would be really great if can-stache could be used like handlebars and only do livebindings and dom parsing and all that only in a browser environment.

maybe split all browser binding parts into a extra optional module.

@justinbmeyer
Copy link
Contributor

I think there's another ticket to do something similar. I'll try to find it.

@frank-dspeed
Copy link
Contributor Author

the size and bloat tickets from canjs and can-element are maybe related.as the dom and other binding parts take much code space.

as a workaround i am experimenting with template literals forking all existing canjs examples and do the binding via some self crafted helpers.

it works really well i think maybe even can-stache can be deprecated as your able to run functions inside template literals and also do if then else and the nativ js stuff.

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

2 participants