GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cube/RULES.md at master · gitbbrid/cube

Expand file tree

/

RULES.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
30 lines (19 loc) · 726 Bytes
/

RULES.md

Copy path

File metadata and controls

30 lines (19 loc) · 726 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

规则列表

文件类型

cube 定义3种类型的文件: script, style, tpl

同类型内,一般不会出现重名的现象

文件规则

require寻址

  1. js, coffee 可以不带后最,cube会自动寻址
  2. 模板文件,样式文件,都需要带上后最

url直接访问寻址

  1. 识别文件类型,
  2. 寻找原文件,如果原文件匹配,则直接命中源文件
  3. 寻找同一类型的文件

** url直接访问的时候,尽可能使用 基本类型访问: .js .css

编译寻址

网页直接引用时,不需要更改地址

  1. js -> .js, coffee -> .js
  2. css -> css, less -> css, styl -> css,... css.js less.js styl.js
  3. jade -> jade.js, ejs -> ejs.js
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.