So, I've made a format to print cards out (Shown below). Is it possible for me to fill each card environment from some sort of list, instead of having to write out \cards{foo} for each card? I could use a script to do this, but I thought it would be interesting to try it in LaTeX.
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\newlength\cardheight
\newlength\cardwidth
\setlength\cardheight{0.4\textheight}
\setlength\cardwidth{0.49\textwidth}
\newcommand\cards[1]{%
\fbox{\begin{minipage}[t][\cardheight][t]{\dimexpr\cardwidth-2\fboxsep-2\fboxrule\relax}
\vspace{\baselineskip}
\huge ~ #1
\vfill
\normalsize ~ Cards Against Humanity %I should insert the CAH logo in my final version
\end{minipage}}
\hspace{1pt}}
\pagestyle{empty}
\begin{document}
\centering
\cards{%
Classicist undertones.
} %
\cards{%
A windmill full of corpses.
} %
\cards{%
A tiny horse.
} %
\cards{%
One more card.
} %
\end{document}
So, what I'd do now would be to write all the cards I want into a newline separated file, then write a quick program to wrap each line in "\cards{%\n\n}%"
Is there a way to do this all with LaTeX, so that I only have to have the one file, instead of an external card file, a conversion program and a LaTeX file?

%after\end{minipage}}to avoid spurious spaces. – karlkoeller Nov 26 '13 at 14:55etoolbox? – Canageek Nov 26 '13 at 17:21\cards{{a,b},c}will typeset two cards – Bordaigorl Nov 26 '13 at 17:49