Quantcast
Channel: Thoughts about asset prossessing
Viewing all articles
Browse latest Browse all 3

Thoughts about asset prossessing

$
0
0

Some additional details that I thought about but not entirely sure of:

  1. asset would take in any path in the repo, in the case one wants to publish assets without any processing, so temp wouldn’t be special from the viewpoint of this function.
  2. static would make sense as a directory that get’s published regardless of whether asset was called for its files. However, files published from there would keep their original file names. (Of course because of the point 1. one could also publish a file in static with asset, in which case the filename would contain the hash)
  3. temp could be made to enjoy special treatment in the sense that Zola would trust the hash in its filenames to be correct without checking the contents.
  4. How to reconcile sass with this system? If one would want “full unification” without it getting any special treatment, I would guess that having opted in to the asset pipeline, user would link to the generated css like this {{ asset(sass("sass/styles.scss")) }}. If one wants to keep some special treatment, here’s some alternatives:
    • Provide a variable sass that already contains the result path of the compilation in temp and use it like {{ asset(sass) }}.
    • Provide a variable sass that already contains the result path of the compilation AND the “asset export” in public.
  5. Some other kinds of asset processing I’m thinking of, besides image processing and inlining, is web font optimisation, but it might go pretty far out of scope of what Zola wants to do.

Read full topic


Viewing all articles
Browse latest Browse all 3

Trending Articles