Skip to content

前端工作注意 #5

Description

@Btotals

Bootstrap3

前端样式参照:http://v3.bootcss.com/

Syntax Reference

jade language reference:http://jade-lang.com/reference/attributes/

jade with meteor:https://atmospherejs.com/mquandalle/jade

关于template的模块化编程简述:

可以参照home.jade中的做法,把页面分成几个template(hotQusetions、newQuestion、ranklist),然后在与页面名字相同的template(home)中引用。

对于这几个template,又分别在各自内部使用了question、ranker这两个template

这样的层级嵌套方便router的调用以及helpers的渲染,在event中也方便处理template的事件

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions