Allow for a template to be specified on the command line with the -t or
--template option. These templates are subdirectories within the
The files in the template dir are copied to the application dir with
some simple substitutions performed: filenames have APPNAME replaced by
the actual application name, within files [[%% appname %%]] and
[[%% appdir %%]] are replaced with the appropriate values for the
Actual application. (The delimiters there are intentionally "big" so
That they don't conflict with whatever template delimiters may be used
by the templated files themselves (within views for instance))
Also, the file mode of the template files determines the file mode used
for the corresponding file in the application directory.
Useful for inline templates so that you don't necessarily need a
directory structure or external files.
Also, the underlying template implementation supports passing a
scalar ref, but without the high-level implementation also supporting
this, there's no way to do inline templates with hooks.