blob: 8210d89e1d7aa1ded3c547bfacc11ace99a6e8d9 [file] [log] [blame]
from jinja2.utils import soft_unicode
def format_string(string, pattern):
"""
formats the string with the value passed to it
basicaly the reverse order of standard "format()"
"""
return soft_unicode(pattern) % (string)
class FilterModule(object):
def filters(self):
return {
'format_string': format_string,
}