diff --git a/chevron/renderer.py b/chevron/renderer.py index 65a00f6..ec72c23 100644 --- a/chevron/renderer.py +++ b/chevron/renderer.py @@ -348,6 +348,10 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache', # If we're a partial elif tag == 'partial': + if key.startswith("*"): + key=_get_key(key[1:], scopes, warn=warn) + if not isinstance(key, unicode_type): + key = unicode(str(key), 'utf-8') # Load the partial partial = _get_partial(key, partials_dict, partials_path, partials_ext)