Closed louim closed 9 years ago
Nice!
Note that this means it could show a different mustache to each person that gets sent the link.
Ah, that's a good point. Probably should revert in that case.
I see your point, my main motivation for doing this change is the ability to add more mustaches on mustachify side, without having to modify the external script each time.
Maybe a good solution would be to have /rand
redirect to one of the numbers on the mustachio side?
@afeld I think that would be the best option :+1:
Though I guess this script would then need to make an initial request to get the new URL, then respond back with that new Location
.
According to the Mustachio code at: https://github.com/afeld/mustachio/blob/master/lib/mustachio/app.rb#L60, if we use
rand
instead of a number, randomness is already handled on the mustachio's side, so I don't think we need to do it on our side too.