Ugh. trying to deal with the problem of integrating serverside and clientside templating. Very difficult