Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7398735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:54:27+00:00 2026-05-29T03:54:27+00:00

I would like to have a set of nice tools in JavaScript for creating

  • 0

I would like to have a set of nice tools in JavaScript for creating a small, reusable components easily. Component builder should have some nice API to create an html output for given data, which can be embedded directly on website. An example would be:

var data = smth; // some data, probably JSON ...
var builder = new Builder();
$(container).html( builder.build('user_details_template').with(data) );

This could render, for instance:

<div>
   <h1>User details</h1>
   <span class="username">Aaron Rodgers</span>
   <span class="description">Best QB in the entire world</span>
</div>

Pardon subjective example.

Now, is there some neat way in JavaScript to build such tool? In Java I would build or use some template engine which could accept arbitrary data and render HTML output.

I’m not a JavaScript expert, so the only tools I can think of are string concatenation and regular expressions.

But what are the best practices to do that in JavaScript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:54:28+00:00Added an answer on May 29, 2026 at 3:54 am

    A template system in jquery ui is in planning phase: http://api.jquery.com/template/. However there exist alternative libraries like Mustache

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like a JavaScript function to have optional arguments which I set a
I would like to have my warnings set to the highest level using Microsoft
I have a set of tables in Oracle and I would like to identify
I have a set of integers that I would like to change to a
I have a set of controls bound to data, on which I would like
I have a table and I would like to be able to set up
I have a dropdown list (FK) which I would like to set and display
I have a BulletedList in asp.net that is set to DisplayMode=LinkButton. I would like
I have a set of files and I would like to monitor them for
I have a problem that I would like have solved via a SQL query.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.