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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:19:04+00:00 2026-05-23T14:19:04+00:00

Is there a language I can use to write my website’s HTML, which: converts

  • 0

Is there a language I can use to write my website’s HTML, which:

  • converts to HTML without having to write the HTML directly
  • has all the power of HTML
  • is less verbose than HTML and XML

For example, it should be to HTML what CoffeeScript is to JS.

Also, what is your experience with whatever you suggest?

Also have a look at Comparison of web template engines and Scala Tags

  • 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-23T14:19:05+00:00Added an answer on May 23, 2026 at 2:19 pm

    A good choice is Haml. In Haml, you write highly structured markup that resembles a stripped-down form of HTML, and where common things have easy shortcuts. For example, adding an element, div, id, or class is done just by changing one character.

    It even lets you pass variables in and operate on them in the language of your choice by deferring to a scripting language, so it’s actually more powerful than HTML since the implicit scripting makes it Turing-complete.

    Here’s an example:

      %body
        #header
          %h1 Bob Loblaw's Law Blog
          %h2 by Bob Loblaw
        #content
          - @entries.each do |entry|
            .entry
              %h3.title= entry.title
              %p.date= entry.posted
        #footer
          %p
            All content copyright © Bob Loblaw.
    

    This becomes something like:

    <div id='header'>
      <h1>Bob Loblaw's Law Blog</h1>
      <h2>by Bob Loblaw</h2>
    </div>
    <div id='content'>
      <div class='entry'>
        <h3 class='title'>You don't need double-talk; you need Bob Loblaw</h3>
        <p class='date'>Tuesday, October 31, 2006</p>
      </div>
      <div class='entry'>
        <h3 class='title'>Why should you go to jail for a crime someone else noticed?</h3>
        <p class='date'>Friday, August 11, 2006</p>
      </div>
    </div>
    <div id='footer'>
      <p>
        All content copyright © Bob Loblaw.
      </p>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a structured language for declaring styles in a sensible way, which can
Is there any really low level programming language that can get access the memory
it can be any language. is there a library, software, or plugin that will
There is so many option in each programming languages which can be mentioned in
Are there compilers for high-level languages (such as C) which can be targeted to
I have an HTML text input where users can write in a name for
I have developed a website www.tenxian.com. It has three language versions, English, Japanese and
Possible Duplicate: Can I write an iPhone application in any language other than Objective-C?
I am currently trying to write an application which invloves syntax highlighting codes. (HTML,
I know there are libs in other languages that can take a string that

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.