I have the following PHP code that generates current year, and loops it until it reaches the 10th year.
<?php for ($i=date('Y'); $i <= date('Y', strtotime('+10 years')); $i++) : ?>
<option value="<?php echo $i; ?>"
<?php endfor; ?>
I an new on twig, and would like to ask for assistance on how to make it.