Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Express.js でビューをレンダリングするときに、レイアウトのレンダリングをスキップしようとしています。テンプレート言語として jade を使用しています。私が使用するコード:
res.render("show", { job: data, layout: false });
何かアドバイス?レイアウトをレンダリングし続けます....
ありがとう
100% 確信があるわけではありませんが、現在はそれがデフォルトになっていると思います。
それ以外の場合は、次を試してください。
app.set('view options', { layout: false });
I have this code on jsfiddle.
HTML:
<object type="text/html" data="http://www.w3.org/" style="width:100%; height:100%;pos