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

The Archive Base Latest Questions

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

I am not sure how to explain this and not sure if thats the

  • 0

I am not sure how to explain this and not sure if thats the right title. You may edit this post and title to make it more clear.

Here is what I need to do. We have a CMS and would like to simplify creating pages. Instead of using raw C# to create page templates we want to use a simpler language. For example.

Old way:

<span>User name: <%= Model.UserName %></span>

New way:

<span>User name: {Username}</span>

As you can see the new way is much simpler. But I didn’t want to stop there. i would like to include conditionals, loops variables and other very simple scripting concepts to be parsed by C#. Is there a known method to do this or any ready made code I can use to make this possible.

Edit:

The reason I need something like this is to make the page highly dynamic. This template language will not only be used for presenting a webpage. it will be used to fetch data from the database, load information from other webpages, construct dynamic data, create calculated data on the fly. This means I can insert the template code in a post then it will run the custom template (scripting code) on the fly.

  • 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-27T03:03:50+00:00Added an answer on May 27, 2026 at 3:03 am

    You probably want RazorEngine, which uses Microsoft’s new Razor template language.

    It’s even lighter than your example.

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

Sidebar

Related Questions

The title may not seem very clear - was not sure how to explain
I'm not sure how to best explain this, so this may be a bit
Not sure if this is the right terminology, let me explain what I want.
I'm not sure this is the right place but here I go: I have
Sorry for the horrible title, not sure how to explain this. I have a
Not sure if I can explain this correctly, but I am trying to execute
Not even sure how to explain this but I connect to a remote computer
I'm not sure exactly how to explain this, so I'll just start with an
I am not sure what I'm missing here so I'll try to explain a
Not sure whether this is the right place, but I have a question related

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.