# Path: app.py



import os
import sys
from flask import request, Response
from app import app
# -*- coding: utf-8 -*-
"""
    javascript.timeago_filter
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    A Filter for the jQuery Timeago Plugin
    http://flask.pocoo.org/snippets/49/
"""

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




"""
Timeago is a jQuery plugin that makes it easy to support automatically 
updating fuzzy timestamps (e.g. “4 minutes ago” or “about 1 day ago”). 
It automatically keeps them updated and only needs a very basic span 
tag or something similar with a certain class and title attribute.
    
For instance
    <span class=timeago title="2008-07-17T09:24:17Z">...</span>
turns into something like this:
    <span class=timeago title="July 17, 2008">2 years ago</span>
"""



# Path: app.py



# Path: javascript/filter_for_timeago.py
import os
import sys
from flask import request, Response
from app import app

# -*- coding: utf-8 -*-
"""
    javascript.timeago_filter
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    A Filter for the jQuery Timeago Plugin
    http://flask.pocoo.org/snippets/49/
"""

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




"""
Timeago is a jQuery plugin that makes it easy to support automatically 
updating fuzzy timestamps (e.g. “4 minutes ago” or “about 1 day ago”). 
It automatically keeps them updated and only needs a very basic span 
tag or something similar with a certain class and title attribute.
    
For instance
    <span class=timeago title="2008-07-17T09:24:17Z">...</span>
turns into something like this:
    <span class=timeago title="July 17, 2008">2 years ago</span>
"""



@app.template_filter()