Hello! I'm using Phalcon's volt templating engine and I got a little "issue", as follows:
In the controller I'm calling a service to fetch a json object with data and I'm throwing it in volt. Here, I have something like this:
{% for item in serviceData %} {{ partial('index/index', ['item' : item]) }} {% endfor %}
Right now I have a template container that is filled for every item fetched, but I'd like to show a limited number of containers. Also, I want to create a button that will load +x containers on every press. There's no need for asynchronous calls, so I would like to use just JavaScript since the data is already provided.
Any ideas on how should I proceed? Any piece of advice would be highly appreciated!
P.S: I hope that I was clear enough on what I want to do. :)