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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:15:06+00:00 2026-05-23T15:15:06+00:00

Got next template in separate file section.htm: <h3>${Name}</h3> {{each Variables}} {{tmpl($data) Type}} ${Type} |

  • 0

Got next template in separate file section.htm:

<h3>${Name}</h3>
{{each Variables}}
    {{tmpl($data) Type}}
    ${Type} | ${Name} | ${Value}
    <br/>
{{/each}}

I need to render different templates (stored in htm files too) depending on Type.
For example, for Type equal to “MultilineText” – MultilineText.htm should be used.
Something like: {{tmpl($data) “MultilineText”}}

I already got MultilineText.htm loaded, compiled and cached.

Content of MultilineText.htm:

${Name}<textarea>${Value}</textarea>

But this code doesnt work 🙁

Please help.

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-23T15:15:07+00:00Added an answer on May 23, 2026 at 3:15 pm

    And the answer is {{tmpl($value) $.template[$value.Type]}}

    $.template[some_template_name] – with this u can choose what template will be rendered
    some_template_name – name of template.

    Notice that template should be loaded and compiled with $.tmpl before and have some_template_name name.

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

Sidebar

Related Questions

I've got the following in my .css file creating a little image next to
I got this next problem. I have a binary file, which I write to
I got next snippet from microsoft template <typename T> struct RemoveReference { typedef T
I've got two spans in a div. I want to align them next to
Got a class that serializes into xml with XMLEncoder nicely with all the variables
Got a requirement to rebuild mssql full-text index. Problem is - I need to
I've got the next SQL query: SELECT FIRST_NAME, LAST_NAME FROM MYTABLE WHERE STATUS =
I've got a Django template that initiates the Facebook OAuth process by doing: window.location='https://www.facebook.com/dialog/oauth?client_id=MY_CLIENT_ID&redirect_uri=http%3A//localhost%3A8000/fbpanel/explore-python'
Possible Duplicate: Why is this “min” template of cpp-next at fault? From another question
I've got a django model that contains a manytomany relationship, of the type, class

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.