Closed dreikanter closed 11 years ago
Add --templates and --prototypes options to the init command, to replace site templates and prototypes with default files from the package.
--templates
--prototypes
Original proposal: Templates and prototypes should be optional component of the site sources.
If there are no templetes and prototypes use default files from the package directory (calculate relative path from __file__).
__file__
New command line options:
pub init --templates
pub init --prototypes
Add
--templates
and--prototypes
options to the init command, to replace site templates and prototypes with default files from the package.Original proposal: Templates and prototypes should be optional component of the site sources.
If there are no templetes and prototypes use default files from the package directory (calculate relative path from
__file__
).New command line options:
pub init --templates
— copy default templates during new site initialization, or copy tempates to the already initialized website directory.pub init --prototypes
— copy default prototypes during new site initialization, or copy tempates to the already initialized website directory.