Rocket chat 项目结构

侧边栏文件 :

html
vim packages/rocketchat-ui-sidenav/client/sideNav.html

js
packages/rocketchat-ui-sidenav/client/sidebarItem.html

主页:
packages/rocketchat-ui-master/client/main.html

Home 页面
./packages/rocketchat-ui/client/views/app/home.js

文本设置:
vim packages/rocketchat-lib/server/startup/settings.js

CSS 路径
packages/rocketchat-theme/client/imports/fnkeep/

调用方式:
RocketChat.settings.get(‘Layout_Home_Content’)

Css Layout 调用
RocketChat.Layout
packages/rocketchat-lib/client/lib/Layout.js

URL 路由规则:
client/routes/router.js

Mongo DB 调用
new Mongo.Collection

Xpath 多级解析

selector = Selector(response)
divs = selector.xpath(‘//div[@class=”detials-title-cont”]’)
for div in divs:
h4divs = div.xpath(“./h4/text()”)
for h4div in h4divs:
print “——- “,h4div.extract()
uldivs = div.xpath(‘./following-sibling::ul[1]’)
for uldiv in uldivs:
uladivs = uldiv.xpath(“./li/div/div/a/text()”)
for uladiv in uladivs:
print “parse_tpo_lecture_select txt ——————” ,uladiv.extract()

Audio Post

This is dummy copy. It is not meant to be read. It has been placed here solely to demonstrate the look and feel of finished, typeset text. Only for show. He who searches for meaning here will be sorely disappointed. These words are here to provide the reader with a basic impression of how actual text will appear in its final presentation. Think of them merely as actors on a paper stage, in a performance devoid of content yet rich in form. That being the case, there is really no point in your continuing to read them. After all, you have many other things you should be doing. Who’s paying you to waste this time, anyway?

This is dummy copy. It’s Greek to you. Unless, of course, you’re Greek, in which case, it really makes no sense. Why, you can’t even read it! It is strictly for mock-ups. You may mock it up as strictly as you wish.

Meaningless mock-up, mock turtle soup spilled on a mock turtle neck. Mach I Convertible copy. To kill a mockingbird, you need only force it to read this copy. This is Meaningless filler. (Elvis movies.) It is not meant to be a forum for value judgments nor a scholarly diatribe on how virtue should be measured. The whole point here (if such a claim can be made in an admittedly pointless paragraph) is that this is dummy copy. Real bullets explode with destructive intensity. Such is not the case with dummy bullets. In fact, they don’t explode at all. Duds. Dull thuds. Dudley do-wrongs. And do-wrongs don’t make a right. Why on earth are you still reading this? Haven’t you realized it’s just dummy copy? How many times must you be reminded that it’s really not meant to be read? You’re only wasting precious time. But be that as it may, you’ve got to throw in a short paragraph from time to time. Here’s a short paragraph.

It breaks up the intimidating blocks of text and makes the page more inviting to read, which is again ironic, considering this is dummy copy. It is not meant to be read. Someday this space will be occupied by real copy that is meant to be read. What other form of filler would dare be so politically incorrect? This is dummy copy. It is not meant to be read. Good thing.

This is dummy copy. It is not meant to be read. Accordingly, it is difficult to figure out when to end it. If this were real copy, it would have ended long ago, because—as we all know—no one reads body copy, and even fewer read body copy this long. But then, this is dummy copy. It is not meant to be read. Period.

This is a video post and it is very nice

Meaningless mock-up, mock turtle soup spilled on a mock turtle neck. Mach I Convertible copy. To kill a mockingbird, you need only force it to read this copy. This is Meaningless filler. (Elvis movies.) It is not meant to be a forum for value judgments nor a scholarly diatribe on how virtue should be measured. The whole point here (if such a claim can be made in an admittedly pointless paragraph) is that this is dummy copy. Real bullets explode with destructive intensity. Such is not the case with dummy bullets. In fact, they don’t explode at all. Duds. Dull thuds. Dudley do-wrongs. And do-wrongs don’t make a right. Why on earth are you still reading this? Haven’t you realized it’s just dummy copy? How many times must you be reminded that it’s really not meant to be read? You’re only wasting precious time. But be that as it may, you’ve got to throw in a short paragraph from time to time. Here’s a short paragraph. It breaks up the intimidating blocks of text and makes the page more inviting to read, which is again ironic, considering this is dummy copy. It is not meant to be read. Someday this space will be occupied by real copy that is meant to be read. What other form of filler would dare be so politically incorrect? This is dummy copy. It is not meant to be read. Good thing. This is dummy copy. It is not meant to be read. Accordingly, it is difficult to figure out when to end it. If this were real copy, it would have ended long ago, because—as we all know—no one reads body copy, and even fewer read body copy this long. But then, this is dummy copy. It is not meant to be read. Period.