From be3dbb528c90a48310dd85e1027d6529a14692c1 Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Fri, 10 Dec 2010 10:32:01 +0530 Subject: [PATCH] Added template information --- data/templates/basic/info.yaml | 13 +++++++++++++ hyde/cli.py | 2 ++ hyde/engine.py | 1 + 3 files changed, 16 insertions(+) create mode 100644 data/templates/basic/info.yaml diff --git a/data/templates/basic/info.yaml b/data/templates/basic/info.yaml new file mode 100644 index 0000000..0e52118 --- /dev/null +++ b/data/templates/basic/info.yaml @@ -0,0 +1,13 @@ +author: Lakshmi Vyasarajan +description: A basic layout for hyde. Based on html5 boilerplate +website: http://hydehub.org/hyde/templates/basic +template: jinja2 (2.6) +version: 0.1 +dependencies: + scripts: + - jquery (1.4) + - dd_belatedpng + extensions: + - media + widgets: + - analytics diff --git a/hyde/cli.py b/hyde/cli.py index bfd89c1..6f6ffb7 100644 --- a/hyde/cli.py +++ b/hyde/cli.py @@ -19,6 +19,8 @@ def main(): description="Entry points for hyde") init_command = subcommands.add_parser('init', help='Create a new hyde site') init_command.set_defaults(run=init) + init_command.add_argument('-t', '--template', action='store', default='basic', dest='template', + help='Overwrite the current site if it exists') init_command.add_argument('-f', '--force', action='store_true', default=False, dest='force', help='Overwrite the current site if it exists') args = parser.parse_args() diff --git a/hyde/engine.py b/hyde/engine.py index aa8ba4d..00e3736 100644 --- a/hyde/engine.py +++ b/hyde/engine.py @@ -2,6 +2,7 @@ def init(args): print args.sitepath print args.force + print args.template def gen(args): pass