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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -