Skip to content

Commit

Permalink
complete fork
Browse files Browse the repository at this point in the history
  • Loading branch information
willdrewesum committed Jul 18, 2023
1 parent afd736a commit cfbd5a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Registration
Applications can be registered directly in the extension constructor::

from flask import Flask
from flask.ext.mako import MakoTemplates
from flask_mako import MakoTemplates

app = Flask(__name__)
mako = MakoTemplates(app)
Expand Down Expand Up @@ -97,7 +97,7 @@ as Jinja2 templates. Additionally, Mako templates receive the same context as
Jinja2 templates. This allows you to use the same variables as you normally
would (``g``, ``session``, ``url_for``, etc)::

from flask.ext.mako import render_template
from flask_mako import render_template

def hello_mako():
return render_template('hello.html', name='mako')
Expand Down
4 changes: 2 additions & 2 deletions flask_mako.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
flask.ext.mako
flask_mako
~~~~~~~~~~~~~~~~~~~~~~~
Extension implementing Mako Templates support in Flask with support for
Expand Down Expand Up @@ -32,7 +32,7 @@

itervalues = getattr(dict, 'itervalues', dict.values)

_BABEL_IMPORTS = 'from flask.ext.babel import gettext as _, ngettext, ' \
_BABEL_IMPORTS = 'from flask_babel import gettext as _, ngettext, ' \
'pgettext, npgettext'
_FLASK_IMPORTS = 'from flask.helpers import url_for, get_flashed_messages'

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='Flask-Mako',
version='0.4',
version='0.5',
url='https://github.com/benselme/flask-mako',
license='BSD',
author='Beranger Enselme, Frank Murphy',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mako.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import flask
from flask import Flask, Blueprint, g
from flask.ext.mako import (MakoTemplates, TemplateError, render_template,
render_template_string, render_template_def)
from flask_mako import (MakoTemplates, TemplateError, render_template,
render_template_string, render_template_def)

from mako.exceptions import CompileException

Expand Down

1 comment on commit cfbd5a7

@willdrewesum
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See: benselme#19

The "flask.ext" style of naming/importing modules has been pallets/flask#1484. pallets/flask#1135 (comment).

If you see a flask.ext import in documentation for a Flask extension, that's a red flag that the code is abandonware. It's been deprecated for 6 years now. The Flask docs no longer mention it, beyond the deprecation warnings in the Changelog

Copying the suggested fork from the end of issue:
benselme@a5ec694

Please sign in to comment.