I need your help in creating a script on Freemarker with a list of year options based on ${copyrightYear} as a base year. I will use this on credit card expiration options that will have an output like this.
<option value="" name="">Year</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
...until 2021
2011 should be ${copyrightYear} and it will increment 10 times until it reaches the year 2021. I want this to be automated every year. Any help from you guys will be much appreciated.Thanks!