It is often necessary to see the unit interval $I=[0,1]$ as a space with two base points $0,1$. This allows for attaching $1$-cells to $K^0$ to give cell complexes such as the following Fig 4.17 of Topology and Groupoids:
You then need a Seifert-van Kampen Theorem for the fundamental groupoid $\pi_1(X,A)$ on a set $A$ of base points. The pushout theorem looks exactly like the usual theorem for $X=U \cup V$ but replaces
$\pi_1(X,a)$ with $U,V, W=U \cap V$ path connected and $a \in W$ by
$\pi_1(X,A)$ where $A$ meets each path component of $U,V,W$.
The proof, if done by verifying the universal property of a pushout, is not much different from the proof for the group case given by Crowell in 1959. Details are in this paper and in a different way in Topology and Groupoids (T&G). This idea was published in 1967.
See also Higgins' downloadable book Categories and Groupoids (1971). To interpret the theorem one needs to set up what can reasonably be called combinatorial groupoid theory, see T&G. This allows a treatment of constructions which include free groups and free products of groups, because of the "spatial extension to group theory" given by the objects of a groupoid. Note also that for $K$ a CW-complex, $\pi_1(K^1,K^0)$
is a free *groupoid**, so this idea needs developing. .
See also this mathoverflow discussion.
April 11, 2016 One aspect is that the groupoid $\mathcal I \cong \pi_1(I, \{0,1\})$ is a generator of the category of groupoids as $\mathbb Z$ is in the category of groups. Note also that the circle $S^1$ is obtained from $I$ by identifying $0,1$ in the category of spaces. And $\mathbb Z$ is obtained from $\mathcal I$ by identifying $0,1$ in the category of groupoids.
Further, $\mathcal I$ is an interval object in the category of groupoids, leading to a useful homotopy theory of groupoids.
There is still, and after almost 50 years, only one topology text which explains these facts.