Removed deprecated module functionality

This commit is contained in:
Armin Ronacher 2014-08-27 01:12:33 +02:00
parent 84ad89ffa4
commit 817b72d484
17 changed files with 2 additions and 453 deletions

View file

@ -1,7 +0,0 @@
from flask import Flask
app = Flask(__name__)
from moduleapp.apps.admin import admin
from moduleapp.apps.frontend import frontend
app.register_module(admin)
app.register_module(frontend)

View file

@ -1,14 +0,0 @@
from flask import Module, render_template
admin = Module(__name__, url_prefix='/admin')
@admin.route('/')
def index():
return render_template('admin/index.html')
@admin.route('/index2')
def index2():
return render_template('./admin/index.html')

View file

@ -1 +0,0 @@
/* nested file */

View file

@ -1 +0,0 @@
Hello from the Admin

View file

@ -1,9 +0,0 @@
from flask import Module, render_template
frontend = Module(__name__)
@frontend.route('/')
def index():
return render_template('frontend/index.html')

View file

@ -1 +0,0 @@
Hello from the Frontend