Comment out smart CSS from default mapping. Fix minor bug in template_tools

This commit is contained in:
Cassowary 2019-06-03 19:23:34 -07:00
parent 39dde28e35
commit bf0b7a1cb7
2 changed files with 18 additions and 18 deletions

View File

@ -62,24 +62,24 @@ template-html:
- jinja2
- jinja2_page_embed
# Smart CSS are simply converted to CSS.
sass:
extension:
- sass
- scss
chain:
- process_sass
less:
extension:
- less
chain:
- process_less
# # Smart CSS are simply converted to CSS.
# sass:
# extension:
# - sass
# - scss
# chain:
# - process_sass
# less:
# extension:
# - less
# chain:
# - process_less
stylus:
extension:
- styl
chain:
- process_styl
# stylus:
# extension:
# - styl
# chain:
# - process_styl
# # Images are processed into thumbnails and sized in addition to being retained as their original
# FIXME implement split chain processor, implement processor arguments,

View File

@ -67,7 +67,7 @@ def file_content(root: str, metatree: MetaTree, processor_chains: ProcessorChain
metadata = metatree.get_metadata(file_name)
chain = processor_chains.get_chain_for_filename(os.path.join(root, file_name), ctx=metadata)
contcache[file_name] = chain.output
return unicode(chain.output)
return str(chain.output)
return get_file_content