Browse Source

Fixes for whitespaces and first time generation

main
Lakshmi Vyasarajan 14 years ago
parent
commit
feab737a7d
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      hyde/ext/templates/jinja.py
  2. +2
    -0
      hyde/generator.py

+ 1
- 0
hyde/ext/templates/jinja.py View File

@@ -276,6 +276,7 @@ class HydeLoader(FileSystemLoader):
""" """
Calls the plugins to preprocess prior to returning the source. Calls the plugins to preprocess prior to returning the source.
""" """
template = template.strip()
logger.debug("Loading template [%s] and preprocessing" % template) logger.debug("Loading template [%s] and preprocessing" % template)
(contents, (contents,
filename, filename,


+ 2
- 0
hyde/generator.py View File

@@ -147,6 +147,8 @@ class Generator(object):
Checks if the given resource has changed since the Checks if the given resource has changed since the
last generation. last generation.
""" """
if not self.generated_once:
return True
self.load_site_if_needed() self.load_site_if_needed()
self.load_template_if_needed() self.load_template_if_needed()
target = File(self.site.config.deploy_root_path.child( target = File(self.site.config.deploy_root_path.child(


Loading…
Cancel
Save