Commit 8189847c authored by Дмитрий Никулин's avatar Дмитрий Никулин Committed by Никита Ефремов

Templating: add quote_list filter

parent 40cb1a47
...@@ -11,6 +11,7 @@ from settingsd import service ...@@ -11,6 +11,7 @@ from settingsd import service
from settingsd import shared from settingsd import shared
from settingsd.tools.process import execProcess from settingsd.tools.process import execProcess
import settingsd.tools.templating
from jinja2 import Template from jinja2 import Template
......
from jinja2.defaults import DEFAULT_FILTERS
def quote_list(input_list):
return ['"' + item + '"' for item in input_list]
DEFAULT_FILTERS['quote_list'] = quote_list
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment