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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:51:08+00:00 2026-05-11T07:51:08+00:00

I am exploring ASP.NET MVC and I wanted to add jQuery to make the

  • 0

I am exploring ASP.NET MVC and I wanted to add jQuery to make the site interactive. I used StringTemplate, ported to .Net, as my template engine to generate html and to send JSON. However, when I view the page, I could not see it. After debugging, I’ve realized that the $ is used by the StringTemplate to access property, etc and jQuery uses it too to manipulate the DOM. Gee, I’ve looked on other template engines and most of them uses the dollar sign :(.

Any alternative template engine for ASP.Net MVC? I wanted to retain jQuery because MSFT announced that it will used in the Visual Studio (2008?)

Thanks in Advance 🙂

Update

Please go to the answer in ASP.NET MVC View Engine Comparison question for a comprehensive list of Template engine for ASP.NET MVC, and their pros and cons

Update 2

At the end I’ll just put the JavaScript code, including JQuery, in a separate script file, hence I wouldn’t worry about the $ mingling in the template file.

Update 3

Changed the Title to reflect what I need to resolve. After all ‘The Best X in Y’ is very subjective question.

  • 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. 2026-05-11T07:51:08+00:00Added an answer on May 11, 2026 at 7:51 am

    You can of course move your js logic into a .js file. But if you want it inline with your StringTemplate views, you can escape it using the \$ construct.

    In addition, you can simply use the jQuery(‘selector’), instead of $(‘selector’) construct if you want to avoid the escaping syntax.

    Here’s a good article on using StringTemplate as a View Engine in MVC.

    There’s also an accompanying OpenSource engine, along with some samples.

    Also, as mentioned above, you can modify your Type Lexer. (make it an alternate character to the $).

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

Sidebar

Related Questions

Has anyone tried using ASP.NET MVC's WebForms view engine to do code generaiton? I
An example system might require: Presentation/administration (ASP.NET MVC site) Object model for data access,
Lately, i have been exploring the source code of OutputCache attribute in asp.net mvc-3
What do people recommend for creating popup's in ASP.Net MVC? I have used the
I wanted to get your opinion about managing scripts in ASP .NET MVC. There
I am just exploring asp.net mvc as I want to switch from Webforms. I
I am exploring the possibilities of ASP.NET MVC in the example webapplication of Visual
I'm exploring the possibilities of the ASP.net Webpages 2 with Razor, and trying to
Lately, I've been exploring what's the best way to organize presentation layer of ASP.NET
I am building an application in ASP.NET MVC 3 in which I have implemented

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.