Skip to content

Commit 027a421

Browse files
committed
Switch from pystache to chevron as the dep to render mustache templates
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 6aef894 commit 027a421

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"gunicorn",
2424
"Werkzeug",
2525
"click",
26-
"pystache",
26+
"chevron",
2727
"cookies-samesite-compat",
2828
],
2929
extras_require={

src/satosa/micro_services/attribute_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import re
2-
import pystache
2+
from chevron import render as render_mustache
33

44
from .base import ResponseMicroService
55
from ..util import get_dict_defaults
@@ -136,7 +136,7 @@ def _synthesize(self, attributes, requester, provider):
136136
for attr_name, fmt in recipes.items():
137137
syn_attributes[attr_name] = [
138138
value
139-
for token in re.split("[;\n]+", pystache.render(fmt, context))
139+
for token in re.split("[;\n]+", render_mustache(fmt, context))
140140
for value in [token.strip().strip(';')]
141141
if value
142142
]

0 commit comments

Comments
 (0)