itsahappymedium/ttc
最新稳定版本:0.0.1
Composer 安装命令:
composer require itsahappymedium/ttc
包简介
A PHP Command Line tool for compiling Twig template files.
关键字:
README 文档
README
A PHP Command Line tool for compiling Twig template files.
Installation
To a package (local)
composer require-dev itsahappymedium/ttc
./vendor/bin/ttc help
To your system (global)
composer global require itsahappymedium/ttc
ttc help
Usage
Example
# Compiles all .twig files in the `templates` directory recursively # Using variables from the `staging-server` object in `config.yml` # Placing all generated files in the `public` directory ttc -r -s templates -d public -f config.yml -b staging-server
At the very least, one of input or source options are required.
Options
-
--arguments-file/-f- A file to load twig arguments/variables from. -
--arguments-file-type/-t- The type of filearguments-fileis. (Possible values:env,json,yml) (If omitted, the file type will be automatically determined based on the file extension.) -
--arguments-file-base/-b- A dot-notation path inside ofarguments-filewhere the arguments/variables should be loaded from. -
--destination/-d- The directory to place the generated files in. (If omitted, the files will be placed in the same directory as the twig files) -
--input/-i- An individual twig file to compile. -
--output/-o- The path where the individual compiled file should go. (Used in combination withinput) (If omitted, the compiled file will be placed in the same directory as the twig file) -
--source/-s- The directory where the twig files are.
Flags
--recursive/-r- Sets whether or not thesourcedirectory should be searched recursively. (Only used when thesourceoption is used)
Related
-
FEC - A PHP Command Line tool that makes it easy to compile, concat, and minify front-end Javascript and CSS/SCSS dependencies.
-
GPM - A PHP Command Line tool that makes it easy to download dependencies from GitHub.
License
MIT. See the license.md file for more info.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-09