PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/source/Slides.js

https://bitbucket.org/benluo/shlug_slides_201205
JavaScript | 112 lines | 111 code | 1 blank | 0 comment | 0 complexity | 1af1da353f60283dfcac58fb3e4e17a1 MD5 | raw file
Possible License(s): Apache-2.0
  1. slides = [
  2. {
  3. classes: "scroller-slide", components: [
  4. {tag:"h1", content:"Enyo 2 与无 template 的 python web 应用"},
  5. ]
  6. },
  7. {
  8. classes: "scroller-slide", components: [
  9. {tag:"h1", content:"关于我"},
  10. {content:"自由软件跟从者"},
  11. {content:"email: benluo@gmail.com"}
  12. ]
  13. },
  14. {
  15. classes: "scroller-slide", components: [
  16. {tag:"h1", content:"讲座安排"},
  17. {content:"Enyo 简介"},
  18. {content:"Python Web 框架选型"},
  19. {content:"Enyo + Zerkzeug + SQLAlchemy 框架"},
  20. {content:"问答"}
  21. ]
  22. },
  23. {
  24. classes: "scroller-slide", components: [
  25. {tag:"h1", content:"Enyo 历史"},
  26. {tag:"h2", content:"Enyo 史前史"},
  27. {content:"Palm OS 5 运行在 Treo 手机上"},
  28. {content:"Mojo 运行在 Pre/Pixi/Veer 手机上"},
  29. {tag:"h2", content:"Enyo 历史"},
  30. {content:"Enyo 1 运行在 Touchpad 平板电脑上"},
  31. {content:"Enyo 2 计划运行在将来出的 open webOS 手机上"}
  32. ]
  33. },
  34. {
  35. classes: "scroller-slide", components: [
  36. {tag:"h1", content:"Enyo 2 的特点"},
  37. {content:"HTML 只是JS 文件的容器"},
  38. {content:"基本上是JS和CSS来实现网页应用"},
  39. {content:"原则上是跨平台的"},
  40. {content:"Enyo 2 是直接从 Enyo 1 来的,应该对手机应用最适合"},
  41. ]
  42. },
  43. {
  44. classes: "scroller-slide", components: [
  45. {tag:"h1", content:"Enyo 2 的典型程序"},
  46. {content:"index.html 作为程序的入口"},
  47. {content:"enyo 目录里包含 enyo.js 和 enyo.css 是 enyo 的核心库。"},
  48. {content:"source 或其它目录下保存应用的 JS 文件。"},
  49. {content:"source 或其它目录下保存应用的 css 文件"}
  50. ]
  51. },
  52. {
  53. classes: "scroller-slide", components: [
  54. {tag:"h1", content:"index.html"}
  55. ]
  56. },
  57. {
  58. classes: "scroller-slide", components: [
  59. {tag:"h1", content:"应用的 JS 主程序"}
  60. ]
  61. },
  62. {
  63. classes: "scroller-slide", components: [
  64. {tag:"h1", content:"Python web 框架选型"},
  65. {content: 'Django 太重,而且有 template '},
  66. {content: 'Flask 封装多,有些我不喜欢的封装, 有 template'},
  67. {content: 'CherryPy 不活跃,不喜欢它的 url 分发的方式'},
  68. {content: 'Pyride 有 template, 有zope 血统'},
  69. {content: 'Tornado 介绍中太强悍,而且用了 eventloop, 有点担心'},
  70. {tag:'h2', content: '最终选择 Zerkzurg -- Flask 底层的库'},
  71. {content: '无 template'},
  72. {content: '够轻量'},
  73. {content: '和 SQLAlchemy 配合'},
  74. {content: 'URL 分发经过封装可以比较好看'}
  75. ]
  76. },
  77. {
  78. classes: "scroller-slide", components: [
  79. {tag:"h1", content:"相关链接"},
  80. {tag: "a href='http://enyojs.com'", content:"Enyo 2 -- 从 webOS 演化来的 JS 库"},
  81. {tag: 'br'},
  82. {tag: "a href='http://www.djangoproject.com'", content:"Django -- 流行的 Python Web 框架"},
  83. {tag: 'br'},
  84. {tag: "a href='http://flask.pocoo.org'", content:"Flask -- 新晋轻量级 Python Web 框架"},
  85. {tag: 'br'},
  86. {tag: "a href='http://cherrypy.org'", content:"CherryPy -- 轻量级 Python Web 框架"},
  87. {tag: 'br'},
  88. {tag: "a href='http://www.pylonsproject.org/projects'", content:"Pyride -- 轻量级 Python Web 框架,Zope 血统"},
  89. {tag: 'br'},
  90. {tag: "a href='http://http://www.tornadoweb.org/'", content:"Tornado -- 从 FaceBook 来的 Python Web 框架"},
  91. {tag: 'br'},
  92. {tag: "a href='http://Zerkzeug.pocoo.org'", content:"Zerkzeug -- Flask 的底层库"},
  93. {tag: 'br'},
  94. {tag: "a href='http://http://www.sqlalchemy.org/'", content:"SQLAlchemy -- Python 中最流行的 ORM 库"}
  95. ]
  96. },
  97. {
  98. classes: "scroller-slide", components: [
  99. {tag:"h1", content:"代码展示"},
  100. {tag:"a href='https://benluo@bitbucket.org/benluo/meixigeshidan-werkzeug-enyo'", content: '梅玺阁食单'},
  101. {tag: 'br'},
  102. {tag:'a href="https://benluo@bitbucket.org/benluo/shlug_slides_201205"', content: '本讲座演示文档'},
  103. {tag: 'br'}
  104. ]
  105. },
  106. {
  107. classes: "scroller-slide", components: [
  108. {tag:"h1", content:"问答"}
  109. ]
  110. }
  111. ];