We hope everyone in the Northern Hemisphere has been enjoying the sunshine and summer months! ☀️
Looking back over the past month, there haven’t been many major changes to the templating language or updates to our documentation. But since we value all improvements, big or small, this feels like a great moment to shine a light 🔦 on some of the smaller updates that have quietly made a difference over the past year 🔍.
Stay tuned though, as there are some exciting updates ahead! 👏
With this in mind, sit back, relax and enjoy a fresh portion of good news from the Silverfin Developer Community.
The ‘continue’ tag is a helper tag for iterations. Where for instance the ‘break’ tag stops the iteration at a certain point (in order to avoid needless iterations and gain performance) the ‘continue’ tag allows to skip iterations in a collection.
When creating an input ‘as:select’, we generally advise making use of the ‘option_values’ attribute, which makes sure the actual value of the selected option remains the same, even when the user changes languages. However, there could be use-cases where we actually do want to use or print the selected option of the dropdown. Until recently, this might have proven to be quite cumbersome in Liquid since template authors needed to map the options to the option_values to return the correct result 🥲
Well, those days are over! The ‘assign_option’ attribute allows developers to create a variable returning the chosen ‘option’, instead of the corresponding ‘option_value’ 👏