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

main
Cas Rusnov 6 years ago
parent 39dde28e35
commit bf0b7a1cb7
  1. 34
      pixywerk2/defaults/chains.yaml
  2. 2
      pixywerk2/template_tools.py

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

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