【发布时间】:2013-06-24 08:02:37
【问题描述】:
我是流星的新手,我正在尝试建立简单的网站。现在我们可以通过简单的操作在jade中定义header,container:
!!!5
html
head
title #{title} - helloworld
link(rel='stylesheet', href='/stylesheets/style.css')
body
header
h1 helloworld
.container
.main-content
block content
.sidebar
block sidebar
footer
p Running on node with Express, Jade and Stylus
但是在meteor中,我们通过:
head
title helloworld
body
{{> hello}}
template(name="hello")
p this is helloworld
现在我的问题是我们如何在流星中定义容器、主要内容??
提前谢谢你!!!!
【问题讨论】: