Frage

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?

War es hilfreich?

Lösung

I found the solution:

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

  body
    != body
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top