명령이 된 구문
동작은 명령이므로 그 결과를 식에서 사용할 수 있습니다.
| 이전 | 지금 |
|---|---|
write 구문 |
@write_text(path, text), @append_text(path, text) 또는 @write_json(path, value) (KScript.IO) |
move 및 copy 구문 |
@move(from, to), @copy(from, to) (KScript.IO) |
delete 구문 |
@delete(path) (KScript.IO) |
mkdir 구문 |
@create_folder(path) (KScript.IO) |
assert 구문 |
@assert(condition, message?) (KScript.Test) |
stylesheet 구문 |
@stylesheet(path, vars?), CSS를 반환합니다: @write_text('site.css', @stylesheet('theme.ks.css')) (KScript.Style) |
dispatch 구문 |
작업 고유 메서드: SendWelcome(user_id: 7)->dispatch(), delay:, at:, queue: 또는 connection: 포함 (KScript.Queue) |
download 구문 |
@download(url, to), 저장한 파일의 경로를 반환합니다 (KScript.Net) |
redirect 구문 |
컨트롤러의 return @redirect(/thanks) (KScript.Http); 페이지의 <respond redirect="/thanks" /> |