你如何通过多行在Jade中写对象?
目前我不得不像这样编写对象
.grid-col
- var content = {name: 'brand',title: 'Dull designers',copy: 'Posted by Jamie Ellul',tags: ['test-1','test-2','test-3']}
include patterns/panel--sub
理想情况下,我喜欢像这样编写我的对象
.grid-col
-var content = {
name: 'example',
another: 'one'
}
include patterns/panel--sub
有什么想法吗?
更新