You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
gosukiwi edited this page Mar 26, 2013
·
10 revisions
Once Iced Tea is installed, you'll be able to call it simply by typing tea into the command line.
About the CLI
The CLI is designed to compile .tea files into .php files, but not only that, as with PHP, only the code inside <?tea and ?> tags will be compiled, everything else will be untouced.
This allows you to mix PHP and IcedTea in the same file.
Example:
<h1>Hello
<?tea
name = _GET['name'] ?? 'User'
echo(name)
?>
</h1>
Commands
It's really easy to use Iced Tea's CLI, right now it only has three commands
compile
watch
clean
Compile
usage: tea compile input [ouptut]
Compiles a file or a folder recursively
Watch
usage: tea watch input [output]
Watches a file or a folder not recursively
Clean
usage: tea clean input
Cleans the workspace, removing all PHP files if there's a .tea file with the same name.