In Ruby/Sinatra/Haml I would write:
开发者_高级运维%html{:lang => 'en'}
%head
%meta{:charset => 'utf-8'}
%title= @title
%body
=yield
What would it look like in Node/Express/Jade?
I found the solution:
html(lang="en")
head
meta(charset="utf-8")
title= title
body
!= body
精彩评论