-
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
Webpack loader announce #3
Comments
Awesome! Many thanks! Let me know if you find the library useful |
I think it will help a lot of people to migrate for more performant rendering strategy |
cool. BTW, in case you try to get a reference to the current element from a helper - e.g. to do something a la |
I managed to access the current element by putting the interpolation
I can not see how it could be done AFAIK the only way to do that would be creating a way to put raw script in the code, something that superviews does with the |
Hello, I've got a specific case, where 90% of the app templates will be precompiled but some may be compiled on page load or loaded from an external source (ajax) and compiled on the spot. I already use incremental-bars with incremental-bars-loader for Webpack and it seems to work with this example:
However I cannot load incremental-bars to be used in browser in any way. Including it like that:
gives me a lot of warnings and some errors:
Any help would be really appreciated, thank you. |
I personally don't use webpack so perhaps someone with more experience with that can chime in. I guess it's not a difficult task to make it work - given the very limited amount of dependencies. OTOH, it may makes sense to use the standard Handlebars compiler for those 10% pages that requires on-the-fly compilation. |
Thanks, It probably isn't difficult, but I'm starting out in this department. Unless there's a way I don't know about? Edit: So there's no easy way to get a working incremental-bars.js file to include I suppose? |
well, you could use |
Allright, thanks for help, I'll try that! |
Thanks for your work.
Just like to inform that i created a webpack loader for incremental-bars: https://github.com/blikblum/incremental-bars-loader
An actual example of usage can be found at https://github.com/blikblum/marionette.renderers/tree/master/examples/idom-handlebars
The text was updated successfully, but these errors were encountered: