javascript - Does Handlebars require jQuery -


i'm trying build handlebars app using javascript. i've noticed in there documentation, initialize using:

var source   = $("#entry-template").html(); 

is step required or there way around using native javascript?

no, doesn't require jquery.

only reason why people prefer jquery because of ease of use jquery perform various operations. saves lots of time & additional effort.

using handlebars plain javscript require effort. if have enough time should try out things plain javascript.

below given links might of understand things better -

http://code.tutsplus.com/tutorials/handlebarsjs-a-behind-the-scenes-look--net-32678

http://www.raymondcamden.com/2012/04/19/demo-of-handlebars-and-why-you-should-consider-a-templating-engine


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -