Re-added support for folder with static files, refactored static file sending

This commit is contained in:
Armin Ronacher 2010-07-05 10:23:35 +02:00
parent b7109865a3
commit ac13deff40
6 changed files with 36 additions and 10 deletions

View file

@ -18,7 +18,8 @@ from jinja2 import Markup, escape
from .app import Flask, Request, Response
from .config import Config
from .helpers import url_for, jsonify, json_available, flash, \
send_file, get_flashed_messages, get_template_attribute
send_file, send_from_directory, get_flashed_messages, \
get_template_attribute
from .globals import current_app, g, request, session, _request_ctx_stack
from .module import Module
from .templating import render_template, render_template_string