cogapp

Embed Python code in static files for dynamic content generation

brewmacoslinux
Try with needOr install directly
Source

About

Small bits of Python computation for static files

Commands

cog

Examples

Process a file with embedded Python code markers$ cog -r myfile.txt
Generate output from Python code blocks in HTML$ cog -r index.html
Show what changes would be made without modifying files$ cog -c myfile.txt