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

  • SEARCH
  • Home
  • 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 6606115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:21:42+00:00 2026-05-25T19:21:42+00:00

When I look in the dojo documentation for template all I get is for

  • 0

When I look in the dojo documentation for template all I get is for dijit and examples only show you been able to use them in a widgit. I’m looking for the equivalent of the below methods in js prototype

var tmpl = new Template(url)
tmpl.evaluate(templateObj)

Does dojo have a template method that you can use in a dojo.declare( class ){} like you can do in js prototype. If not how could I go about similar functionality

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-25T19:21:42+00:00Added an answer on May 25, 2026 at 7:21 pm

    You may be interested in dojo.string.substitute (you’ll need to dojo.require("dojo.string")).

    http://dojotoolkit.org/api/dojo/string/substitute

    [Edit] Also, if you’re interested in acquiring a template for use in substitution from a URL on the same server, you may also want to look into dojo.cache (which is also what is often used to fetch widget templates):

    http://dojotoolkit.org/reference-guide/dojo/cache.html

    To clarify missingno’s response, I don’t think dojo.parser is what you’re interested in right now; its job is to scan the DOM and transform DOM nodes into widgets and other Dojo components. dijit._Templated only uses dojo.parser when child widgets are involved (i.e. widgetsInTemplate is true); on the other hand, it uses dojo.string.substitute in all cases, to initially parse ${...} strings (e.g. ${id}) in the template.

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

Sidebar

Related Questions

I've been teaching myself Dojo over the last few days. However, if you look
I have been using Dojo and Dijit for more than a year to develop
I am trying to use the Dojo/Dijit declarative menu with Spring ROO 1.1.4, but
I have been using Dojo hosted on Google's CDN. I just downloaded the development
I'm desperately trying to use json data to fill my dojo spider chart. First
This has been working fine, not sure why it's stopped all of a sudden..
When we take a look at Javascript frameworks like Dojo, Mootools, jQuery, JS Prototype,
Look, before I get comments about how stupid I am for asking a question
I have this dojo TimeTextBox in the HTML: <input type=text id=startTime value= dojoType=dijit.form.TimeTextBox></input> and
Look at the following code: window.onload = someFunction; Many times I see the use

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.