What is the equivalent of yield in jade?
题
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
不隶属于 StackOverflow