web-architecture - 您如何构建网站内容?

标签 web-architecture

您是否尽量保持简单并有一个根文件夹,然后是 1 个用于图像、javascript、flash 等的文件夹?你通常怎么称呼你的文件夹?你给你的文件命名约定吗?

最佳答案

不是标准方式..但根据我的经验,我想出了这个结构:

root/
 -> images/
      -> <subfolder>
      -> upload
 -> js/
 -> css/
 -> data/
 -> docs/
 -> download/
 -> mme/
 -> subpages/
 -> temp/
 -> siteadmin/

root: all 1st level file located there
images: all images. if images for subfolder, then another level there with the same name.  upload is for uploaded images.
js: javascript
css: css
data: some raw data if needed
docs: word doc or pdf for download
download: something that for ppl to downlaod...
mme: other multimedia files. e.g. flash, movie.. soudn clips.etc.
subpages: 2 or subsequent level pages. organized in different folders
temp: any testing page store there.  private, not public.
siteadmin: if you have an admin site. 

关于web-architecture - 您如何构建网站内容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/595886/

相关文章:

javascript - 使用 AJAX/JSON 提供静态 HTML 和生成内容有什么好处?

css - 相似站点之间共享目录中的公共(public)共享 CSS JS 文件?

session - stateless 是否仅将客户端的状态转移到其他地方?

android - 当他退出我的应用程序时,何时停止向客户发送推送通知

validation - 代码架构 - Flask - 在哪里放置数据库中的表单验证?

uber-api - uber 中的 riblet 架构有什么缺点?

c++ - Web 服务器上的图像处理

ruby-on-rails - 如何在 Rails 应用程序中设计/组织/架构移动 Web 的开发?

asp.net-mvc - 页面 Controller 模式到底是什么?