krang_upload_templates - import templates from filesystem
krang_upload_templates --path /path/to/templates
Upload a directory of templates into a Krang instance, via the API. Uploaded templates will be deployed. Checked out templates will be skipped, as will those for which sites or caregories do not exist in the CMS.
This tool is primarily to aid developers, permitting them to work with templates on the filesystem (presumably version controlled by CVS or SVN), as opposed to having to muck around with ``templates.kds''.
The script takes the following options:
/path/to/templates/
+--- bleh.tmpl
+--- site1.com/
| +--- bleh.tmpl
| +--- foo/bleh.tmpl
+--- site2.com/
+--- bleh.tmpl
+--- foo/bleh.tmpl
Sites and Categories will NOT be created. Template files in invalid directories will be ignored.