What is the equivalent of yield in jade?
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?
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