阅 读 文 章

snakelets 文档,我翻译了一部分。

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(瘦青蛙) | 时间:2007-05-27 | 浏览:人次 ]



[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.
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 翻译 文档 使用 可以 页面 URL 如果 文件 webapp 一个

最新评论 共有1位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.