Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions chevron/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down