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 691927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:35:48+00:00 2026-05-14T02:35:48+00:00

I’m starting to migrate some html generation tasks from a server-side framework to the

  • 0

I’m starting to migrate some html generation tasks from a server-side framework to the client. I’m using jQuery on the client. My goal is to get JSON data via a REST api and use this data to populate HTML into the page.

Right now, when a user on my site clicks a link to My Projects, the server generates HTML like this:

<dl>
    <dt>Clean Toilet</dt>
    <dd>Get off your butt and clean this filth!</dd>

    <dt>Clean Car</dt>
    <dd>I think there's something growing in there...</dd>

    <dt>Replace Puked on Baby Sheets</dt>
</dl>

I’m changing this so that clicking My Projects will now do a GET request that returns something like this:

[
  {
    "name":"Clean Car",
    "description":"I think there's something growing in there..."
  },
  {
    "name":"Clean Toilets",
    "description":"Get off your butt and clean this filth!"
  },
  {
    "name":"Replace Puked on Baby Sheets"
  }
]

I can certainly write custom jQuery code to take that JSON and generate the HTML from it. This is not my question, and I don’t need advice on how to do that.

What I’d like to do is completely separate the presentation and layout from the logic (jquery code). I don’t want to be creating DL, DT, and DD elements via jQuery code. I’d rather use some sort of HTML templates that I can fill the data in to. These templates could simply be HTML snippets that are hidden in the page that the application was loaded from. Or they could be dynamically loaded from the server (to support user specific layouts, i18n, etc.). They could be displayed a single time, as well as allow looping and repeating. Perhaps it should support sub-templates, if/then/else, and so forth.

I have LOTS of lists and content on my site that are presented in many different ways. I’m looking to create a simple and consistent way to generate and display content without creating custom jQuery code for every different feature on my site. To me, this means I need to find or build a small framework on top of jQuery (probably as a plugin) that meets these requirements.

The only sort of framework that I’ve found that is anything like this is jTemplates. I don’t know how good it is, as I haven’t used it yet. At first glance, I’m not thrilled by it’s template syntax.

Anyone know of other frameworks or plugins that I should look into? Any blog posts or other resources out there that discuss doing this sort of thing? I just want to make sure that I’ve surveyed everything out there before building it myself.

Thanks!

  • 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-14T02:35:48+00:00Added an answer on May 14, 2026 at 2:35 am

    Since posting this question, I have found many other templating options. I’ve listed many of them below. However, there was recently a jQuery templates proposal that may be the most promising solution yet. There is also a discussion about it on the jquery site. Here is the project location:

    • https://github.com/nje/jquery/wiki/jquery-templates-proposal

    Other solutions I’ve come across include (in no particular order):

    • http://www.west-wind.com/weblog/posts/509108.aspx
    • http://ejohn.org/blog/javascript-micro-templating/
    • http://beebole.com/pure/
    • http://archive.plugins.jquery.com/project/jTemplates
    • http://archive.plugins.jquery.com/project/advancedmerge
    • http://archive.plugins.jquery.com/project/tempest
    • http://archive.plugins.jquery.com/project/jBind
    • http://archive.plugins.jquery.com/project/cliche
    • http://archive.plugins.jquery.com/project/appendDom
    • http://archive.plugins.jquery.com/project/openSocial-jquery-templates
    • http://archive.plugins.jquery.com/project/Orange-J
    • http://archive.plugins.jquery.com/project/fromTemplate-microtemplate
    • http://archive.plugins.jquery.com/project/resiglet
    • http://archive.plugins.jquery.com/project/databind
    • http://archive.plugins.jquery.com/project/jsont
    • http://archive.plugins.jquery.com/project/domplate
    • http://archive.plugins.jquery.com/project/noTemplate
    • http://archive.plugins.jquery.com/project/jQueryHtmlTemplates
    • http://github.com/trix/nano
    • http://aefxx.com/jquery-plugins/jqote/
    • http://ajaxian.com/archives/chainjs-jquery-data-binding-service
    • http://ajaxpatterns.org/Browser-Side_Templating
    • http://beebole.com/pure/
    • http://code.google.com/p/google-jstemplate/
    • http://code.google.com/p/trimpath/wiki/JavaScriptTemplates
    • http://embeddedjs.com/
    • Javascript template system – PURE, EJS, jquery plugin?
    • jQuery templating engines
    • http://goessner.net/articles/jsont/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 419k
  • Answers 419k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes it can, though you'll only be able to commit… May 15, 2026 at 10:13 am
  • Editorial Team
    Editorial Team added an answer It would help to get some more background as to… May 15, 2026 at 10:13 am
  • Editorial Team
    Editorial Team added an answer There's actually a project out there which provides a Django… May 15, 2026 at 10:13 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.