[size=18]Page Creation Tutorial[/size]
Please refer to Effective Ypages and Snakelets for a tutorial on creating good, maintainable web pages.
Snakelets manual - Back to index
瘦青蛙 回复于:2005-06-21 08:35:34
[size=18]Effective Ypages and Snakelets[/size]
This chapter is a tutorial about creating effective and maintainable web pages. The following subjects are covered:
这一章是关于如何建立有效持久web页面的指南。包括下面几个条目:
[list]
· Ypage templating (???模版化?)
· Other ways of avoiding page code duplication (避免页面代码复制的其他途径)
· HTML- and URL-escaping (HTML 和 URL 编码???)
· Building correct urls (建立正确的url)
· Character encodings (字符编码)
· Content-type (内容类型)
· FORM handling (表单控制)
[/list]
For details on the different subjects, you must read the other chapters in this manual. This chapter is a summary to get you started quickly.
详细资料您需要阅读参考手册的其他章节。这一章只是概要。
This text is not yet finished, it will be more detailed in a future version
这一部分还没有完成,在以后版本中将会补充新的内容。
[size=18]Ypage Templating and Inclusion[/size]
To avoid repeating parts of your page code over and over again in each page you should define the general layout and common parts of your pages in one or more template pages. All your other Ypages can then just contain the template declaration, and only the page content that is different in each page. The template page could define a common header, menu, body layout, footer and script/css links, and the rest of the pages only define the body content. If you want to change the layout of the site you only have to update the template and all your pages will use the new layout. You can define a template page in every Ypage or define one global template for all pages using the webapp's defaultPageTemplate config variable.
上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1819 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 下一页
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 翻译 文档 使用 可以 页面 URL 如果 文件 webapp 一个 |
注册
个人空间
