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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -