| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | 1 | from flask import Blueprint, render_template, current_app |
|
|
|
|||
| 2 | from flask_cachecontrol import cache_for |
||
| 3 | |||
| 4 | 1 | ||
| 5 | blueprint = Blueprint('custom-page', __name__) |
||
| 6 | |||
| 7 | 1 | ||
| 8 | @blueprint.route("/custom") |
||
| 9 | @cache_for(days=7) |
||
| 10 | def get(): |
||
| 11 | return render_template( |
||
| 12 | 'custom.html', |
||
| 13 | fonts=sorted(current_app.font_service.all()), |
||
| 14 | config=current_app.config, |
||
| 15 | ) |
||
| 16 |