Prompt #133
Back to promptsAdd Glug Plugin with Blueprint
- Variables
- plugin_name, feature
- Tags
- stack-aware,glug,plugin,flask,blueprint,manifest
- Source
- research-2026-05-01-stack-aware
- Use count
- 0
- Created
- 2026-05-01T18:30:48.776731+00:00
- Updated
- 2026-05-01T18:30:48.776731+00:00
Content
Create a new Glug plugin at /nvmetank1/projects/glug/plugins/{plugin_name}/.
Your plugin MUST include:
1. manifest.toml with id = "glug.{plugin_name}", version, description fields
2. __init__.py that registers at least one Flask blueprint via blueprints = ["routes:bp"]
3. routes.py with a minimal Flask Blueprint (bp = Blueprint(...))
4. Registration: _discover_plugins(app) in the glug webserver picks up the plugin automatically
Provide:
- Complete manifest.toml content
- __init__.py with blueprint registration
- routes.py stub with one route
- Any db_migrations key needed if {feature} requires a new table
Verify: after adding the plugin, `POST /admin/settings/plugins/reload` hot-reloads it without container restart.