Perhaps you mean something like Jade ?
This is an HTML preprocessor.
Following:
doctype 5 html(lang="en") head title= pageTitle script(type='text/javascript') if (foo) { bar() } body h1 Jade - node template engine
Will be translated into:
<!DOCTYPE html> <html lang="en"> <head> <title>Jade</title> <script type="text/javascript"> if (foo) { bar() } </script> </head> <body> <h1>Jade - node template engine</h1> <div id="container"> <p>You are amazing</p> </div> </body> </html>
Also, this is not exactly what you are asking for, but you might like Zen Coding . This is a plugin for high speed HTML coding. GIF shows what it does:

Primarily:
- Enter pseudo-html.
- Click the shortcut.
- Get full HTML.
- ?????
- Profit!
You should check your editor if it supports this. FWIW, I use this in VIM, and it's awesome.
source share