Loops in vapid?


#1

hello, great project !

Will loops be put in place in the near future so that we can administer image lists or project lists for example?


#2

@binah If I’m understanding correctly, loops already exist. Take a look at the Repeating Content section in the docs:
https://docs.vapid.com/learn-more#sections

For easy reference, here’s how you’d write a repeating section for projects (i.e. a loop):

{{#section projects}}
  {{title}}
  {{description type=html}}
{{/section}} 

Note: You could also declare the section as {{#section projects multiple=true}}. Vapid assumes that sections with plural names are meant to be repeating.