Browse Source

Added template information

main
Lakshmi Vyasarajan 14 years ago
parent
commit
be3dbb528c
3 changed files with 16 additions and 0 deletions
  1. +13
    -0
      data/templates/basic/info.yaml
  2. +2
    -0
      hyde/cli.py
  3. +1
    -0
      hyde/engine.py

+ 13
- 0
data/templates/basic/info.yaml View File

@@ -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

+ 2
- 0
hyde/cli.py View File

@@ -19,6 +19,8 @@ def main():
description="Entry points for hyde") description="Entry points for hyde")
init_command = subcommands.add_parser('init', help='Create a new hyde site') init_command = subcommands.add_parser('init', help='Create a new hyde site')
init_command.set_defaults(run=init) 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', init_command.add_argument('-f', '--force', action='store_true', default=False, dest='force',
help='Overwrite the current site if it exists') help='Overwrite the current site if it exists')
args = parser.parse_args() args = parser.parse_args()

+ 1
- 0
hyde/engine.py View File

@@ -2,6 +2,7 @@
def init(args): def init(args):
print args.sitepath print args.sitepath
print args.force print args.force
print args.template


def gen(args): pass def gen(args): pass



Loading…
Cancel
Save