parse a string from tag django
===

I have a custom template tag 

    {% perpage 10 20 30 40 50 %}
User can write his own numbers instead of this 10,20 etc. Also, the amount of these numbers is defined by user. How can I parse this tag and read this numbers?
I want to use "for"-instruction