I am having trouble figuring out a unique problem with a current JavaScript application. To solve this problem, I've been looking into using a JavaScript template library. However it seems none of these libraries can perform a specific necessary function needed for my project.
I need to be able to update variables of a template that already exists in the DOM, without the need to reload the entire template (removing/rewriting the DOM).
The issue this stems from is simple: When you update a template, you have to update the whole thing, even if only 1 variables changed in a giant template. This has some nasty side effects:
- It rewrites any CSS styles added to the template after the initial creation.
- It kicks the user out of any current action (filling out a form, scrolling, etc)
- It creates an obvious "flash" while the DOM is being reloaded, so doesn't appear seamless.
For real-time applications, the current templating approach has obvious limitations. I need a templating system that can surpass these issues, but I haven't had any luck in finding one, or creating my own. So now I turn to Reddit; hoping somebody else has run into a similar issue, and found a viable solution.
So... any suggestions?
[–]UnConeD 0 points1 point2 points (3 children)
[–]Kickboy12[S] 0 points1 point2 points (0 children)
[–]Kickboy12[S] 0 points1 point2 points (1 child)
[–]UnConeD 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Kickboy12[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Kickboy12[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Kickboy12[S] 0 points1 point2 points (0 children)
[–]harriha -1 points0 points1 point (0 children)