%%
%% Copyright (C) 2022 by Friedemann Bartels
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version.  The latest version of this license is in:
%%
%%    http://www.latex-project.org/lppl.txt
%%
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2008/05/04 or later.
%%

\documentclass{xput}

\pagewidth=10cm
\pageheight=10cm
\margin=20mm

\newbeforepage{primary}{
  \text{\strut before}
}
\setbeforepage{primary}

\begin{document}

  \page{
    \text{\strut page}
  }

  \template{f}{
    \text{\strut template}
  }

\end{document}
