Create a Makeshift JavaScript Templating Solution
Loading...
6,663
Loading...
Uploader Comments (nettutsplus)
see all
All Comments (11)
-
Hellow, I was wondering if you can teach me how to add other stuff to the templating sistem like texto to explain whats about the article or more thigs.
Thank you. Martin
PD: I tried to put it like you teached us but it had a few problems
-
The timing for this could not have been better.
-
Wow! Mind-blowingly quick and informative.
-
I love this video! Thanks for sharing. I'm just curious, on a philosophical level, why would one use Javascript to build templates in the first place? Is this assuming the absence of a backend solution such as PHP?
-
Simple and great, thank you.
-
Yeah, that shows one of the neat aspects of Javascript, thanks fo that :)
-
WAOW, i don't hate Javascript anymore.
-
remarkable!!
Loading...
I like this one, good job! just one little thing with regards to possible speed optimization... storing the replaced text in a variable first and only changing innerHTML at the very end (after the FOR loop) will speed this up quite a bit, as the DOM would only need to be updated once ;-)
zathruswriter 2 months ago
@zathruswriter Yeah - forgot to do that during the video. Refer to the article on Nettuts+ for the updated version. I also included a more automated solution that I personally use.
nettutsplus 2 months ago