Have you tried just using a function? CodeReloader Plug

[24h free video] - Pagination using Scrivener

https://www.dailydrip.com/topics/elixir/drips/paginating-a-user-s-posts