{% for question in rat.rat_questions %} {% set ns.preview = read_file(data_save_path + "/" + question.file_path)[0:400] %} {{ns.preview[0:60]}} {% if ns.preview | length > 60 %} ... {% endif %} {% endfor %}