from flask import render_template, redirect, url_for
from flask import Markup
from flask.ext.login import current_user

from application import application
from application.page.views import retrieve_page
from application.user.models import UserPermission

@application.route('/')
def index():
	blocks = [ retrieve_page("index/" + str(i)) for i in range(1, 5) ]

	return render_template('index.htm', blocks=blocks, path="index")

@application.route('/via')
@application.route('/page/via')
@application.route('/page')
@application.route('/page/')
def viavia():
	return redirect(url_for('.index'))

def test():
	return 'testing'

def view_navigation_bar():
	return Markup(render_template('navigation/view_bar.htm'))


from flask import render_template, redirect, url_for
from flask import Markup

from application import application
from application.page.views import retrieve_page

@application.route('/')
def index():
	blocks = [ retrieve_page("index/" + str(i))[0] for i in range(1, 5) ]
	print blocks

	return render_template('index.htm', blocks=blocks, path="index")

@application.route('/via')
@application.route('/page/via')
@application.route('/page')
@application.route('/page/')
def viavia():
	return redirect(url_for('.index'))

def test():
	return 'testing'

def view_navigation_bar():
	return Markup(render_template('navigation/view_bar.htm'))


Fix homepage