0.1.0 • Published 9 years ago
tile-engine-cli v0.1.0
Tile Engine CLI
The command line interface for tile engine specifically designed for Compose (a WYSIWYG website builder).
Usage:
te [action] [target] [options]
Action:
create Create tile/site/section in current directory
compile Compile CTML/page/section
preview Preview CTML/page/section
precompile Precompile tile definitions, this will
bootstrap the performance
Target (when action == create):
tile Create a tile in current directory, by default
it's platform tile which seats in 'tiles/'
folder. If site name is specified, it will
create a site level tile.
e.g.
# create platform tile foo
$ te create tile foo
# create site tile foo
$ te create tile foo --site=mysite
# or
$ te create tile mysite/foo
site Create a site in current directory, this will
setup the whole folder architecture.
e.g.
$ te create site mysite
section Create a section in one site.
Site name need to be specified.
e.g.
$ te create section header --site=mysite
# or
$ te create section mysite/header
Target (when action == compile/preview):
ctml Compile/preview a CTML file in ctml folder.
Inside ctml folder, you can put any files with
file extension .ctml in it. For example,
wow.ctml. Please refer to CTML syntax help for
more information about CTML.
e.g.
$ te compile ctml wow
page Compile/preview a page.
e.g.
$ te preview page mysite/home
section Compile/preview a section of one site.
e.g.
$ te preview section mysite/header
Options:
--site Site name
-h, --help Show usage
-v, --version Show version