# Path: app.py



import os
import sys
from flask import url_for
from werkzeug.routing import BuildError
from app import app
# -*- coding: utf-8 -*-
"""
    urls.permalink
    ~~~~~~~~~~~~~~

    Permalink function decorator
    http://flask.pocoo.org/snippets/6/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




def permalink(function):
    def inner(*args, **kwargs):
        endpoint, values = function(*args, **kwargs)
        try:
            return url_for(endpoint, **values)
        except BuildError:
            return
    return inner


@permalink
def absolute_url():
    return 'profiles', {'username': 'fsp'}



# Path: app.py



# Path: urls/permalink.py
import os
import sys
from flask import url_for
from werkzeug.routing import BuildError
from app import app

# -*- coding: utf-8 -*-
"""
    urls.permalink
    ~~~~~~~~~~~~~~

    Permalink function decorator
    http://flask.pocoo.org/snippets/6/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




def permalink(function):
    def inner(*args, **kwargs):
        endpoint, values = function(*args, **kwargs)
        try:
            return url_for(endpoint, **values)
        except BuildError:
            return
    return inner


@permalink
def absolute_url():
    return 'profiles', {'username': 'fsp'}



@app.route('/profiles/<username>/')