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
- jinja2_page_embed - jinja2_page_embed
# Smart CSS are simply converted to CSS. # # Smart CSS are simply converted to CSS.
sass: # sass:
extension: # extension:
- sass # - sass
- scss # - scss
chain: # chain:
- process_sass # - process_sass
less: # less:
extension: # extension:
- less # - less
chain: # chain:
- process_less # - process_less
stylus: # stylus:
extension: # extension:
- styl # - styl
chain: # chain:
- process_styl # - process_styl
# # Images are processed into thumbnails and sized in addition to being retained as their original # # Images are processed into thumbnails and sized in addition to being retained as their original
# FIXME implement split chain processor, implement processor arguments, # 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) metadata = metatree.get_metadata(file_name)
chain = processor_chains.get_chain_for_filename(os.path.join(root, file_name), ctx=metadata) chain = processor_chains.get_chain_for_filename(os.path.join(root, file_name), ctx=metadata)
contcache[file_name] = chain.output contcache[file_name] = chain.output
return unicode(chain.output) return str(chain.output)
return get_file_content return get_file_content