mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
템플릿을 인클루드하거나 CSS, JS 등을 로딩할 때 다른 경로에 있는 파일을 상대경로로 참조하려고 하면 ../../../../../layouts/path/to/target/asset.scss 처럼 상당히 많이 거슬러 올라가야 하는 경우가 있습니다. 이 때 맨 앞에 ^를 붙여 ^/layouts/path/to/target/asset.scss 라고 마치 절대경로처럼 쓰면 라이믹스 설치 경로 기준으로 (서브폴더에 설치한 경우 포함) 자동으로 변환하도록 하는 패치입니다. 즉 ^ 문자를 넣은 부분이 라이믹스 설치 경로로 치환된다고 보면 됩니다. 지원되는 곳: - <include target="^/path/to/file.html" /> - <load target="^/path/to/file.css" /> - <load target="^/path/to/file.js" /> - SCSS에서 @import "^/path/to/file.scss"; |
||
|---|---|---|
| .. | ||
| css | ||
| defaults | ||
| framework | ||
| img | ||
| js | ||
| lang | ||
| libraries | ||
| manual/server_config | ||
| scripts | ||
| tpl | ||
| autoload.php | ||
| constants.php | ||
| functions.php | ||
| legacy.php | ||