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

Templating HTML in JavaScript #21

Open
jonsmithers opened this issue Dec 9, 2016 · 2 comments
Open

Templating HTML in JavaScript #21

jonsmithers opened this issue Dec 9, 2016 · 2 comments

Comments

@jonsmithers
Copy link
Contributor

jonsmithers commented Dec 9, 2016

MustacheJS is a simple 9KB templating system. Might be worth pulling in to avoid crazy string concatenations.

Edit: HandlebarsJS can be precompiled. Maybe that will allow for a small download size.

Edit: VueJS can also be precompiled at a small size!!

The template-to-virtual-DOM compiler and the runtime can be separated, so you can pre-compile templates and ship your app with only the runtime, which is less than 12kb min+gzip (as a reference, React 15 is 44kb min+gzip)

@jonsmithers
Copy link
Contributor Author

jonsmithers commented Jan 2, 2017

This guy made an experimental, super-fast, "VanillaJS" front-end framework in 0.96kb.

https://hackernoon.com/how-i-converted-my-react-app-to-vanillajs-and-whether-or-not-it-was-a-terrible-idea-4b14b1b2faff#.c3yu3kwm0

It's a good read.

You can see his demo site here: https://knowitall-9a92e.firebaseapp.com/

@jonsmithers
Copy link
Contributor Author

Maybe just use Polymer to encourage small contributions from people we know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants