Files
kennethreitz.org/engine.py
T
kennethreitz 60f1046204 Refactor search functionality and enhance caching mechanisms
- Removed the engine_new.py file as part of restructuring.
- Implemented actual search functionality in api.py, allowing for searching through blog posts with relevance scoring and snippet extraction.
- Enhanced caching in cache.py with a clear_cache function and improved content cleaning for search indexing.
- Deleted outdated homepage-revised.html template and ensured search.html template displays search results with additional metadata such as date and matches found.
2025-09-26 13:05:29 -04:00

19 lines
497 B
Python

#!/usr/bin/env python
"""
TufteCMS Engine - Main application entry point.
This file serves as the entry point for the TufteCMS application.
All the core functionality has been modularized into the tuftecms package.
"""
import os
from tuftecms import create_app
# Create the Flask application using the factory pattern
app = create_app()
if __name__ == "__main__":
# Run the development server
port = int(os.environ.get("PORT", 8000))
app.run(debug=True, host="0.0.0.0", port=port)