Add "Split" filter
Dan Parson
Currently, Rewst supports
.split()
as a function. It might be helpful to add split
as an official Jinja filter — simply as an alias to the existing function.This would support users who are newer to Rewst or who prefer writing expressions with filters instead of function calls.
Current usage:
my_string.split(',')
Proposed alternative:
my_string | split(',')
Log In