andrewvy / nima

Static website generator in Nim
MIT License
4 stars 1 forks source link

Build Process #3

Open andrewvy opened 9 years ago

andrewvy commented 9 years ago

Async/Parallel build process

  1. Partial Build/Caching - Inject partials in partials, then cache into the PartialCache
  2. Template Build/Cache - Inject partials into templates and then output into TemplateCache. One process per template type.
  3. Content Render - Content fetches their template type from the TemplateCache and renders out the compiled HTML, which then gets outputted into the template type directory.
    • [ ] Parallel builds! SPEED IT UP!
    • [ ] Partial/Layout/Content dependency tree - So we can efficiently compile those that are dependent on each other.