Question

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?

Was it helpful?

Solution

I found the solution:

html(lang="en")
  head
    meta(charset="utf-8")
    title= title

  body
    != body
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top