我正在嘗試利用Node/Express的JShare模塊。麻煩轉換這個玉到EJS
在Github上給出的例子說:
Next, you need to make a call out to the JShare helper method in your layout file:
!!!
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
!{includeJShare()}
body!= body
所以,這個例子是翡翠。我正在使用EJS,並且對於我來說,我無法弄清楚如何實施助手方法......這似乎很簡單,但我不確定在Jade中做什麼,或者如何在EJS中複製它。
'includeJShare()'做了什麼?因爲在ejs中你可以做'<%include filename%>' – chovy