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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top