One embodiment of the present invention sets forth a technique for generating a content page having a plurality of layers. The technique includes detecting a first application event associated with a first layer included in a plurality of layers of a content page and accessing, via a template file, at least one parameter of the first layer that corresponds to the first application event. The technique further includes modifying at least one aspect of the first layer based on the first application event and the at least one parameter to generate a first modified layer, and outputting the first modified layer for display.