HTML generator?
LESS is very cool. I always 开发者_Go百科wondered if there are any good html generators that allow me to write a form more easily or do other things. Is there something somewhat similar but for html?
Tried Haml?
From its website, this Haml code:
#profile
.left.column
#date= print_date
#address= current_user.address
.right.column
#email= current_user.email
#bio= current_user.bio
gets converted into this HTML.
<div id="profile">
<div class="left column">
<div id="date"><%= print_date %></div>
<div id="address"><%= current_user.address %></div>
</div>
<div class="right column">
<div id="email"><%= current_user.email %></div>
<div id="bio"><%= current_user.bio %></div>
</div>
</div>
If you like Haml, then you might also like Sass, which is Haml for CSS. Actually, Haml comes with Sass. You can still use LESS if you like.
Check out Zen-Coding.
Uses a CSS style markup to generate HTML with some nice features.
Did one Blended-HTML On-line Layout Generator Uses CSS3 and HTML5 markup to generate the source code for HTML page layout on-line.
精彩评论