render-file calls parse with parse-file as the parse-fn, which calls preprocess-templates, which does additional validation that parse-input does not. As written, the tag {{ foo | safe }} is split and turned into the keyword : safe, which won't match the expected :safe, so calling trim here fixes that bug.
A follow-up to #261.
render-file
callsparse
withparse-file
as theparse-fn
, which callspreprocess-templates
, which does additional validation thatparse-input
does not. As written, the tag{{ foo | safe }}
is split and turned into the keyword: safe
, which won't match the expected:safe
, so callingtrim
here fixes that bug.