Maybe I'm a bit vague in the topic-title, but here's a more in depth explanation of my question. I'm still a total n00b when it comes to Craft / Templating, so I hope you would forgive me if I'm asking 'dumb' questions :-)
At the moment of writing, I get all things done, but I wandered if there would be a way to make things even a bit easier in some ways. Let's say that I want to do a FOR loop like:
{% for drink in craft.entries.section('drinks').limit(5).all() %}
Is there a way to shorten the above example by assigning it to an easier to remember shortcut? Maybe in a separate file. Something like this approach:
{% set drinkoverview = craft.entries.section('drinks').limit(5).all() %}
In that case the variable 'drinkoverview' should be callable globally like:
<div>{{ drinkoverview }}<div>
Maybe this call could be extended by parameters like the 'limit' somehow then?
<div>{{ drinkoverview | limit-5 }}<div>
This would make the Craftbase even more dynamic and flexible in my opinion :-)
I hope anyone can answer my question here :-) Thank you very much for reading and spending time thinking with me.