How servletcloud/fstache works
Fstache is a dependency-free Python Mustache renderer. Applications configure a filesystem renderer, which loads and compiles templates before rendering data into a chunkable result; the CLI provides a separate stdin/JSON entry point. Compilation, partial inlining, missing-value policies, and rendering are distinct internal responsibilities. The map also includes the documented CLI capability. Relationships are limited to README statements and shown source references/calls; unsampled factory details are not inferred.
Main entry points: _factories.py Filesystem Factories · _renderer.py Template Renderer · _cli.py Render CLI · _compiler.py Mustache Compiler
Components 9
Renderer Setup
- Filesystem Factories
src/fstache/_factories.py - Missing Policies
src/fstache/_missing.py
Template Processing
- Mustache Compiler
src/fstache/_compiler.py - Partial Inliner
src/fstache/_inliner.py
Render Runtime
- Template Renderer
src/fstache/_renderer.py - Rendered Output
src/fstache/_renderer.py
User Interfaces
- Render CLI
src/fstache/_cli.py
Other components
- Application
- Shell User
Connections 12
- Application → Filesystem Factories: creates renderer
README.md - Filesystem Factories → Mustache Compiler: compiles templates
src/fstache/_factories.py - Filesystem Factories → Template Renderer: invokes rendering
src/fstache/_factories.py - Filesystem Factories → Missing Policies: configures policies
src/fstache/_factories.py - Filesystem Factories → Partial Inliner: may inline
src/fstache/_factories.py - Mustache Compiler → Template Renderer: provides compiled trees
src/fstache/_compiler.py - Template Renderer → Mustache Compiler: compiles lambda output
src/fstache/_renderer.py - Template Renderer → Rendered Output: produces chunks
src/fstache/_renderer.py - Shell User → Render CLI: runs command
README.md - Render CLI → Mustache Compiler: compiles input
src/fstache/_cli.py - Render CLI → Filesystem Factories: loads partials
src/fstache/_cli.py - Render CLI → Template Renderer: renders template
src/fstache/_cli.py