1. A method comprising: by one or more computing devices, rendering and storing a plurality of dialog templates, each dialog template comprising content for presenting a dialog requiring user interaction and one or more place holders for insertion of content, each dialog template stored with a unique identifier, receiving, from client-side code associated with a user-interface component of an electronic device, a request, which causes a dialog to be displayed on the electronic device; selecting, from the plurality of dialog templates, a rendered dialog template corresponding to the dialog, the rendered dialog template having been rendered for display on electronic devices; constructing a web page that includes the rendered dialog template comprising the one or more placeholders; and sending, to the electronic device, the web page including the rendered dialog template comprising the one or more placeholders for insertion and display of the content by the client-side code executed on the requesting electronic device.