Categories: JavascriptWeb

List of Javascript Templating Engines & Why One Needs Them?

The article presents a short overview on why one needs Javascript templating engines and, a list of these frameworks. Please feel free to suggest one or more frameworks if I missed to include them in the list below.

 

Why do I ever need Javascript templating engine?

Consider the following use-case scenario. Let’s say, you are a big enterprise with different line of businesses (LOBs). Each LOB has a set of web applications serving its business needs. With different LOB having different applications, following scenario is likely to happen:

  • One particular LOB, X, has applications written with Java/JSP.
  • Other LOB, Y, has applications written with .NET technology
  • Other LOB, Z, simply uses Groovy and serves web pages using GSB templates. Take a look at the diagram (Courtesy: LinkedIn) below representing the said-scenario.
  • Here’s Need: Each of the web applications in different LOB come across various requirements of reusing UI widgets developed using different templating engines such as JSP/ASP/PHP etc.
  • What’s the Problem: This leads to the problem of creating UI widgets using in different languages and update these widgets as and when it is updated by parent widget.

The solution to above-mentioned problem is Javascript templating engines. With Javascript templating engines, the data could be retrieved from the server in JSON format and rendered in the browser after applying the JS templates. Take a look at the diagram (Courtesy: LinkedIn) below representing JSON data arriving from different applications rendered using JS templates.

Following are some of the best practices that could be followed:

  • Try and download the JS template from the CDNs
  • For browsers that do not support the Javascript, one should try and apply the JS templates on the server by using server-side templating engine.

 

[adsenseyu1]

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. For latest updates and blogs, follow us on Twitter. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking. Check out my other blog, Revive-n-Thrive.com

View Comments

Share
Published by
Ajitesh Kumar
Tags: javascript

Recent Posts

Mean Squared Error vs Cross Entropy Loss Function

Last updated: 28th April, 2024 As a data scientist, understanding the nuances of various cost…

2 days ago

Cross Entropy Loss Explained with Python Examples

Last updated: 28th April, 2024 In this post, you will learn the concepts related to…

2 days ago

Logistic Regression in Machine Learning: Python Example

Last updated: 26th April, 2024 In this blog post, we will discuss the logistic regression…

3 days ago

MSE vs RMSE vs MAE vs MAPE vs R-Squared: When to Use?

Last updated: 22nd April, 2024 As data scientists, we navigate a sea of metrics to…

5 days ago

Gradient Descent in Machine Learning: Python Examples

Last updated: 22nd April, 2024 This post will teach you about the gradient descent algorithm…

1 week ago

Loss Function vs Cost Function vs Objective Function: Examples

Last updated: 19th April, 2024 Among the terminologies used in training machine learning models, the…

2 weeks ago