Skip to content

What's New

Platform 2018.07.30

Platform · 2018.07.30 · 30 July 2018

ImprovementNew FeatureDeprecationOn production sites

On production sites

This release makes forms and logging easier to write in your Liquid templates.

Include forms with normal Liquid syntax

The new include_form tag lets you pass variables the same way you do everywhere else in Liquid. The render_form tag is now deprecated, so switch to include_form. Replace {% render_form edit_user, id: @user.id %} with {% include_form 'edit_user', id: user.id %}. Put the form name in quotes, and do not use the @ sign when you pass a variable.

Print to the logs with one tag

Use the new log tag to write something to your logs. It replaces the longer log mutation for this simple job. For example: {% log 'hello world' %}, {% log params %} or {% log params, type: 'error' %}. The default type is info.