Software Alternatives, Accelerators & Startups

Jinja2 VS Underscore.js

Compare Jinja2 VS Underscore.js and see what are their differences

Jinja2 logo Jinja2

Jinja2 is a template engine written in Python.

Underscore.js logo Underscore.js

Underscore is a utility-belt library for JavaScript that provides a lot of the functional...
  • Jinja2 Landing page
    Landing page //
    2023-09-24
  • Underscore.js Landing page
    Landing page //
    2018-12-17

Jinja2 videos

Python and Jinja2 Cisco Network Automation

More videos:

  • Review - Python and Flask - Diving into Jinja2

Underscore.js videos

Introduction to Underscore.JS

Category Popularity

0-100% (relative to Jinja2 and Underscore.js)
Javascript UI Libraries
30 30%
70% 70
Development
100 100%
0% 0
Development Tools
0 0%
100% 100
Tool
100 100%
0% 0

User comments

Share your experience with using Jinja2 and Underscore.js. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Underscore.js should be more popular than Jinja2. It has been mentiond 19 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Jinja2 mentions (4)

  • fetching list elements using jinja2 under flask app
    I have a list say list[a][b] of length 10.I want to print from list[0][b] to list[10][b] and use it in jinja2 template. Source: about 2 years ago
  • Jinja2: How to create multidimensional javascript array?
    I am using Flask with Jinja2 as templating language. Source: about 2 years ago
  • Issue a POST request with url_for in Flask
    I'm trying to issue a POST request within a Jinja template in Flask. However, parameters are passed in via GET by default, and this particular method only accepts POST requests. Source: about 2 years ago
  • Build a CRUD application with Flask and SQLAlchemy
    For our application above, we defined the string "My flask app" within our Python code. This was okay, as it was a single line, but as our front-end code grows, it will be cumbersome to define everything in our Python file. Flask allows for separation of concerns though so-called "templates." These are usually .html files, with some Python logic mixed in through the Jinja template engine language. Let's add a... - Source: dev.to / about 3 years ago

Underscore.js mentions (19)

  • 8 NPM Packages for JavaScript Beginners [2024][+tutorials]
    Not too far behind is Underscore.js, another utility library that's all about enhancing your JavaScript mojo. Whether you're dealing with arrays, objects, or strings, Underscore has got something for you. It's like Lodash's sibling, offering similar functionalities but with its own flair. The choice between them is like picking between chocolate and vanilla - it really comes down to personal taste. - Source: dev.to / 2 months ago
  • Discovered a 63kb tiddlywiki like self saving HTML+JS wiki and its looking cool
    I once made a very crude and simple TiddlyWiki work-alike I called "HulloWurld" https://github.com/calroc/HulloWurld It's 143 KB, but it includes copies of Knockout, Underscore, Zepto, and the "Marked" markdown parser... ¯\_(ツ)_/¯ ( Good stuff BTW: http://knockoutjs.com/ http://underscorejs.org/ https://zeptojs.com/ https://github.com/chjj/marked ) Probably the only interesting bit is the code to save the page:... - Source: Hacker News / about 2 years ago
  • Underscore.js: create a map out of list of objects using a key found in the object
    I am using the excellent Underscore.js library. I have a specific task which I can do fine using JavaScript or jQuery but was wondering if there was some sort of abstraction avaialable in Underscore that I was missing out on. Source: about 2 years ago
  • Asking Functional vs Class components again.
    There are many functional libraries for js like underscore, ramda, or even ts specific ones like fp-ts. Source: about 2 years ago
  • How to detect scroll direction in vanilla JavaScript (to make a goofy logo animation)
    /* Source: https://underscorejs.org/underscore-esm.js During a given window of time. Normally, the throttled function will run As much as it can, without ever going more than once per `wait` duration; But if you'd like to disable the execution on the leading edge, pass `{leading: false}`. To disable execution on the trailing edge, ditto. */ Function throttle(func, wait, options) { var timeout, context, args,... - Source: dev.to / about 2 years ago
View more

What are some alternatives?

When comparing Jinja2 and Underscore.js, you can also consider the following products

Pug - Pug is a robust, elegant, feature rich template engine for Node.js

jQuery - The Write Less, Do More, JavaScript Library.

Handlebars - Handlebars is a JavaScript template library that is, more or less, based on ...

React Native - A framework for building native apps with React

mustache - Mustache is a simple web template system with implementations available for ActionScript, C++...

Babel - Babel is a compiler for writing next generation JavaScript.