我試圖讓CoffeeKup與Mozilla的Rhino引擎一起工作。到目前爲止運氣不多。我想這個簡單的模板: templates ?= {}
templates.first = ->
doctype 5
html ->
head ->
title "#{@title}"
body ->
h1 "#{@hello}"
其中
我在對'@content'進行調用後從佈局文件中拉出頁尾腳本(或其他內容)時遇到問題。 「我正在使用coffeekup模板,並具有以下default.html.coffee佈局文件。 doctype 5
html ->
head ->
meta(charset:"utf-8")
title("Docpad")
if @document.descript